home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-19 | 42.0 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Oct 4 11:46:21 1994, modified Wed Oct 19 07:58:30 1994, creator 'HLX2', type 'ONLN', 40142 bytes "HW31 Sleep Queue Tasks" , at 0x9d4e 2562 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 48 57 33 31 20 53 | 6c 65 65 70 20 51 75 65 |..HW31 S|leep Que|
|00000010| 75 65 20 54 61 73 6b 73 | 00 00 00 00 00 00 00 00 |ue Tasks|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 9c ce 00 | 00 0a 02 aa b7 29 4d aa |........|.....)M.|
|00000060| ca ba 66 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..f.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e7 86 00 00 |........|........|
|00000080| 48 57 20 33 31 20 2d 20 | 53 6c 65 65 70 20 51 75 |HW 31 - |Sleep Qu|
|00000090| 65 75 65 20 54 61 73 6b | 73 0d 48 61 72 64 77 61 |eue Task|s.Hardwa|
|000000a0| 72 65 09 0d 57 72 69 74 | 74 65 6e 20 62 79 3a 09 |re..Writ|ten by:.|
|000000b0| 43 6f 6c 6c 65 65 6e 20 | 4b 2e 20 44 65 6c 67 61 |Colleen |K. Delga|
|000000c0| 64 69 6c 6c 6f 09 4d 61 | 79 20 31 39 39 33 0d 54 |dillo.Ma|y 1993.T|
|000000d0| 68 69 73 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |his Tech|nical No|
|000000e0| 74 65 20 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |te demon|strates |
|000000f0| 68 6f 77 20 6f 6e 65 20 | 63 61 6e 20 77 72 69 74 |how one |can writ|
|00000100| 65 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |e an app|lication|
|00000110| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 61 20 64 69 | to disp|lay a di|
|00000120| 61 6c 6f 67 20 62 6f 78 | 20 62 65 66 6f 72 65 20 |alog box| before |
|00000130| 61 20 70 6f 72 74 61 62 | 6c 65 20 4d 61 63 69 6e |a portab|le Macin|
|00000140| 74 6f 73 68 20 67 6f 65 | 73 20 74 6f 20 73 6c 65 |tosh goe|s to sle|
|00000150| 65 70 2e 0d 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |ep..Intr|oduction|
|00000160| 0d 4d 61 6e 79 20 44 65 | 76 65 6c 6f 70 65 72 73 |.Many De|velopers|
|00000170| 20 68 61 76 65 20 61 73 | 6b 65 64 20 61 62 6f 75 | have as|ked abou|
|00000180| 74 20 74 68 65 20 73 6c | 65 65 70 20 71 75 65 75 |t the sl|eep queu|
|00000190| 65 20 63 6f 64 65 20 74 | 68 61 74 20 69 73 20 64 |e code t|hat is d|
|000001a0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 74 68 65 |ocumente|d in the|
|000001b0| 20 50 6f 77 65 72 20 4d | 61 6e 61 67 65 72 20 63 | Power M|anager c|
|000001c0| 68 61 70 74 65 72 20 6f | 66 20 49 6e 73 69 64 65 |hapter o|f Inside|
|000001d0| 20 4d 61 63 69 6e 74 6f | 73 68 20 56 6f 6c 75 6d | Macinto|sh Volum|
|000001e0| 65 20 56 49 2e 20 4d 61 | 6e 79 20 68 61 76 65 20 |e VI. Ma|ny have |
|000001f0| 74 72 6f 75 62 6c 65 73 | 20 77 72 69 74 69 6e 67 |troubles| writing|
|00000200| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00000210| 74 68 61 74 20 61 64 64 | 73 20 61 6e 20 65 6e 74 |that add|s an ent|
|00000220| 72 79 20 74 6f 20 74 68 | 65 20 73 6c 65 65 70 20 |ry to th|e sleep |
|00000230| 71 75 65 75 65 20 61 6e | 64 20 64 69 73 70 6c 61 |queue an|d displa|
|00000240| 79 73 20 61 20 64 69 61 | 6c 6f 67 20 6f 72 20 61 |ys a dia|log or a|
|00000250| 6c 65 72 74 20 62 6f 78 | 20 77 68 65 6e 20 74 68 |lert box| when th|
|00000260| 65 69 72 20 72 6f 75 74 | 69 6e 65 20 72 65 63 65 |eir rout|ine rece|
|00000270| 69 76 65 73 20 61 20 73 | 6c 65 65 70 20 64 65 6d |ives a s|leep dem|
|00000280| 61 6e 64 2e 20 49 74 20 | 61 6c 6c 20 6c 6f 6f 6b |and. It |all look|
|00000290| 73 20 71 75 69 74 65 20 | 73 69 6d 70 6c 65 2c 20 |s quite |simple, |
|000002a0| 62 75 74 20 61 66 74 65 | 72 20 74 72 79 69 6e 67 |but afte|r trying|
|000002b0| 20 69 74 20 6d 79 73 65 | 6c 66 20 49 20 77 61 73 | it myse|lf I was|
|000002c0| 20 61 62 6c 65 20 74 6f | 20 73 65 65 20 74 68 61 | able to| see tha|
|000002d0| 74 20 69 74 20 69 73 20 | 73 69 6d 70 6c 65 72 20 |t it is |simpler |
|000002e0| 73 61 69 64 20 74 68 61 | 6e 20 64 6f 6e 65 2e 20 |said tha|n done. |
|000002f0| 0d 54 68 65 20 50 6f 77 | 65 72 20 4d 61 6e 61 67 |.The Pow|er Manag|
|00000300| 65 72 20 63 68 61 70 74 | 65 72 20 69 6e 20 49 6e |er chapt|er in In|
|00000310| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 56 |side Mac|intosh V|
|00000320| 6f 6c 75 6d 65 20 56 49 | 20 63 6c 65 61 72 6c 79 |olume VI| clearly|
|00000330| 20 73 74 61 74 65 73 20 | 74 68 61 74 20 d2 69 66 | states |that .if|
|00000340| 20 79 6f 75 20 61 72 65 | 20 77 72 69 74 69 6e 67 | you are| writing|
|00000350| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00000360| 74 68 61 74 20 6d 69 67 | 68 74 20 62 65 20 61 66 |that mig|ht be af|
|00000370| 66 65 63 74 65 64 20 62 | 79 20 74 68 65 20 73 6c |fected b|y the sl|
|00000380| 65 65 70 20 73 74 61 74 | 65 20 6f 66 20 74 68 65 |eep stat|e of the|
|00000390| 20 63 6f 6d 70 75 74 65 | 72 2c 20 79 6f 75 20 63 | compute|r, you c|
|000003a0| 61 6e 20 70 6c 61 63 65 | 20 69 6e 20 74 68 65 20 |an place| in the |
|000003b0| 73 6c 65 65 70 20 71 75 | 65 75 65 20 61 20 72 6f |sleep qu|eue a ro|
|000003c0| 75 74 69 6e 65 20 74 68 | 61 74 20 68 61 6e 64 6c |utine th|at handl|
|000003d0| 65 73 20 77 68 61 74 65 | 76 65 72 20 70 72 65 70 |es whate|ver prep|
|000003e0| 61 72 61 74 69 6f 6e 73 | 20 61 72 65 20 6e 65 63 |arations| are nec|
|000003f0| 65 73 73 61 72 79 20 74 | 6f 20 70 72 6f 74 65 63 |essary t|o protec|
|00000400| 74 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 77 |t your p|rogram w|
|00000410| 68 65 6e 20 74 68 65 20 | 50 6f 77 65 72 42 6f 6f |hen the |PowerBoo|
|00000420| 6b 20 65 6e 74 65 72 73 | 20 74 68 65 20 73 6c 65 |k enters| the sle|
|00000430| 65 70 20 73 74 61 74 65 | 2e d3 20 49 74 20 61 6c |ep state|.. It al|
|00000440| 73 6f 20 67 6f 65 73 20 | 6f 6e 20 74 6f 20 73 61 |so goes |on to sa|
|00000450| 79 20 74 68 61 74 20 0d | d2 59 6f 75 20 63 61 6e |y that .|.You can|
|00000460| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 64 |, for ex|ample, d|
|00000470| 69 73 70 6c 61 79 20 61 | 6e 20 61 6c 65 72 74 20 |isplay a|n alert |
|00000480| 62 6f 78 20 74 6f 20 69 | 6e 66 6f 72 6d 20 74 68 |box to i|nform th|
|00000490| 65 20 75 73 65 72 20 6f | 66 20 70 6f 74 65 6e 74 |e user o|f potent|
|000004a0| 69 61 6c 20 70 72 6f 62 | 6c 65 6d 73 2c 20 6f 72 |ial prob|lems, or|
|000004b0| 20 79 6f 75 20 63 61 6e | 20 65 76 65 6e 20 64 69 | you can| even di|
|000004c0| 73 70 6c 61 79 20 61 20 | 64 69 61 6c 6f 67 20 62 |splay a |dialog b|
|000004d0| 6f 78 20 74 68 61 74 20 | 72 65 71 75 69 72 65 73 |ox that |requires|
|000004e0| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 73 70 65 | the use|r to spe|
|000004f0| 63 69 66 79 20 74 68 65 | 20 61 63 74 69 6f 6e 20 |cify the| action |
|00000500| 74 6f 20 62 65 20 70 65 | 72 66 6f 72 6d 65 64 2e |to be pe|rformed.|
|00000510| d3 20 0d 57 68 61 74 20 | 74 68 65 20 63 68 61 70 |. .What |the chap|
|00000520| 74 65 72 20 66 61 69 6c | 73 20 74 6f 20 74 65 6c |ter fail|s to tel|
|00000530| 6c 20 79 6f 75 20 69 73 | 20 74 68 61 74 20 74 68 |l you is| that th|
|00000540| 65 72 65 20 61 72 65 20 | 73 70 65 63 69 61 6c 20 |ere are |special |
|00000550| 74 72 69 63 6b 73 20 74 | 68 61 74 20 6e 65 65 64 |tricks t|hat need|
|00000560| 20 74 6f 20 62 65 20 64 | 6f 6e 65 20 74 6f 20 64 | to be d|one to d|
|00000570| 69 73 70 6c 61 79 20 61 | 6e 20 61 6c 65 72 74 20 |isplay a|n alert |
|00000580| 62 6f 78 20 6f 72 20 64 | 69 61 6c 6f 67 20 62 6f |box or d|ialog bo|
|00000590| 78 20 66 72 6f 6d 20 77 | 69 74 68 69 6e 20 61 6e |x from w|ithin an|
|000005a0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 0d 54 | applica|tion. .T|
|000005b0| 68 69 73 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |his Tech|nical No|
|000005c0| 74 65 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |te descr|ibes the|
|000005d0| 20 74 72 6f 75 62 6c 65 | 73 20 74 68 61 74 20 6f | trouble|s that o|
|000005e0| 6e 65 20 6d 61 79 20 72 | 75 6e 20 69 6e 74 6f 20 |ne may r|un into |
|000005f0| 77 68 65 6e 20 61 74 74 | 65 6d 70 74 69 6e 67 20 |when att|empting |
|00000600| 74 6f 20 75 73 65 20 61 | 20 73 6c 65 65 70 20 71 |to use a| sleep q|
|00000610| 75 65 75 65 20 72 6f 75 | 74 69 6e 65 20 74 6f 20 |ueue rou|tine to |
|00000620| 64 69 73 70 6c 61 79 20 | 61 6e 20 61 6c 65 72 74 |display |an alert|
|00000630| 20 6f 72 20 64 69 61 6c | 6f 67 20 62 6f 78 20 77 | or dial|og box w|
|00000640| 68 65 6e 20 61 20 73 6c | 65 65 70 20 64 65 6d 61 |hen a sl|eep dema|
|00000650| 6e 64 20 6f 63 63 75 72 | 73 2e 20 54 68 69 73 20 |nd occur|s. This |
|00000660| 6e 6f 74 65 20 61 6c 73 | 6f 20 65 78 70 6c 61 69 |note als|o explai|
|00000670| 6e 73 20 6a 75 73 74 20 | 77 68 61 74 20 6f 6e 65 |ns just |what one|
|00000680| 20 6e 65 65 64 73 20 74 | 6f 20 64 6f 20 74 6f 20 | needs t|o do to |
|00000690| 67 65 74 20 61 72 6f 75 | 6e 64 20 73 75 63 68 20 |get arou|nd such |
|000006a0| 64 69 66 66 69 63 75 6c | 74 20 73 69 74 75 61 74 |difficul|t situat|
|000006b0| 69 6f 6e 73 2e 0d 48 6f | 77 20 44 6f 20 49 20 41 |ions..Ho|w Do I A|
|000006c0| 64 64 20 61 6e 20 45 6e | 74 72 79 20 74 6f 20 74 |dd an En|try to t|
|000006d0| 68 65 20 53 6c 65 65 70 | 20 51 75 65 75 65 3f 0d |he Sleep| Queue?.|
|000006e0| 54 68 65 20 50 6f 77 65 | 72 20 4d 61 6e 61 67 65 |The Powe|r Manage|
|000006f0| 72 20 63 68 61 70 74 65 | 72 20 69 6e 20 49 6e 73 |r chapte|r in Ins|
|00000700| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 76 6f |ide Maci|ntosh vo|
|00000710| 6c 75 6d 65 20 56 49 20 | 70 72 6f 76 69 64 65 73 |lume VI |provides|
|00000720| 20 74 68 65 20 61 73 73 | 65 6d 62 6c 79 20 63 6f | the ass|embly co|
|00000730| 64 65 20 6e 65 65 64 65 | 64 20 74 6f 20 61 64 64 |de neede|d to add|
|00000740| 20 61 6e 20 65 6e 74 72 | 79 20 74 6f 20 74 68 65 | an entr|y to the|
|00000750| 20 73 6c 65 65 70 20 71 | 75 65 75 65 2e 20 0d 57 | sleep q|ueue. .W|
|00000760| 68 61 74 20 48 61 70 70 | 65 6e 73 20 57 68 65 6e |hat Happ|ens When|
|00000770| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 49 | the Mac|intosh I|
|00000780| 73 20 50 75 74 20 74 6f | 20 53 6c 65 65 70 3f 0d |s Put to| Sleep?.|
|00000790| 54 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 69 73 |The Maci|ntosh is|
|000007a0| 20 75 73 75 61 6c 6c 79 | 20 70 75 74 20 74 6f 20 | usually| put to |
|000007b0| 73 6c 65 65 70 20 66 72 | 6f 6d 20 77 69 74 68 69 |sleep fr|om withi|
|000007c0| 6e 20 74 68 65 20 46 69 | 6e 64 65 72 2c 20 77 68 |n the Fi|nder, wh|
|000007d0| 65 6e 20 74 68 65 20 75 | 73 65 72 20 63 68 6f 6f |en the u|ser choo|
|000007e0| 73 65 73 20 53 6c 65 65 | 70 20 66 72 6f 6d 20 74 |ses Slee|p from t|
|000007f0| 68 65 20 53 70 65 63 69 | 61 6c 20 6d 65 6e 75 2e |he Speci|al menu.|
|00000800| 20 41 74 20 74 68 69 73 | 20 74 69 6d 65 20 74 68 | At this| time th|
|00000810| 65 20 50 6f 77 65 72 20 | 4d 61 6e 61 67 65 72 20 |e Power |Manager |
|00000820| 77 61 6c 6b 73 20 74 68 | 65 20 73 6c 65 65 70 20 |walks th|e sleep |
|00000830| 71 75 65 75 65 20 61 6e | 64 20 63 61 6c 6c 73 20 |queue an|d calls |
|00000840| 65 76 65 72 79 20 73 75 | 62 72 6f 75 74 69 6e 65 |every su|broutine|
|00000850| 20 74 68 61 74 20 69 74 | 20 66 69 6e 64 73 20 74 | that it| finds t|
|00000860| 68 65 72 65 2e 20 57 68 | 65 6e 20 79 6f 75 72 20 |here. Wh|en your |
|00000870| 73 75 62 72 6f 75 74 69 | 6e 65 20 67 65 74 73 20 |subrouti|ne gets |
|00000880| 63 61 6c 6c 65 64 3a 0d | a5 20 54 68 65 20 63 75 |called:.|. The cu|
|00000890| 72 72 65 6e 74 20 41 35 | 20 77 6f 72 6c 64 20 69 |rrent A5| world i|
|000008a0| 73 20 28 75 73 75 61 6c | 6c 79 29 20 74 68 65 20 |s (usual|ly) the |
|000008b0| 46 69 6e 64 65 72 d5 73 | 2e 20 54 68 69 73 20 6d |Finder.s|. This m|
|000008c0| 65 61 6e 73 20 74 68 61 | 74 20 79 6f 75 20 63 61 |eans tha|t you ca|
|000008d0| 6e 6e 6f 74 20 61 63 63 | 65 73 73 20 79 6f 75 72 |nnot acc|ess your|
|000008e0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 67 6c | applica|tions gl|
|000008f0| 6f 62 61 6c 73 20 66 72 | 6f 6d 20 79 6f 75 72 20 |obals fr|om your |
|00000900| 73 6c 65 65 70 20 72 6f | 75 74 69 6e 65 20 28 75 |sleep ro|utine (u|
|00000910| 6e 6c 65 73 73 20 79 6f | 75 20 66 6f 6c 6c 6f 77 |nless yo|u follow|
|00000920| 20 74 68 65 20 67 75 69 | 64 65 6c 69 6e 65 73 20 | the gui|delines |
|00000930| 66 75 72 74 68 65 72 20 | 64 65 73 63 72 69 62 65 |further |describe|
|00000940| 64 20 69 6e 20 74 68 69 | 73 20 6e 6f 74 65 29 2e |d in thi|s note).|
|00000950| 0d a5 20 54 68 65 20 63 | 75 72 72 65 6e 74 20 72 |.. The c|urrent r|
|00000960| 65 73 6f 75 72 63 65 20 | 63 68 61 69 6e 20 69 73 |esource |chain is|
|00000970| 20 61 6c 73 6f 20 74 68 | 65 20 46 69 6e 64 65 72 | also th|e Finder|
|00000980| d5 73 20 73 6f 20 79 6f | 75 20 63 61 6e 20 6e 6f |.s so yo|u can no|
|00000990| 74 20 61 63 63 65 73 73 | 20 79 6f 75 72 20 61 70 |t access| your ap|
|000009a0| 70 6c 69 63 61 74 69 6f | 6e 73 20 72 65 73 6f 75 |plicatio|ns resou|
|000009b0| 72 63 65 73 20 65 69 74 | 68 65 72 20 28 75 6e 6c |rces eit|her (unl|
|000009c0| 65 73 73 20 79 6f 75 20 | 66 6f 6c 6c 6f 77 20 74 |ess you |follow t|
|000009d0| 68 65 20 67 75 69 64 65 | 6c 69 6e 65 73 20 66 75 |he guide|lines fu|
|000009e0| 72 74 68 65 72 20 64 65 | 73 63 72 69 62 65 64 20 |rther de|scribed |
|000009f0| 69 6e 20 74 68 69 73 20 | 6e 6f 74 65 29 2e 0d 54 |in this |note)..T|
|00000a00| 68 65 20 50 6f 77 65 72 | 20 4d 61 6e 61 67 65 72 |he Power| Manager|
|00000a10| 20 43 61 6c 6c 73 20 4d | 79 20 53 75 62 72 6f 75 | Calls M|y Subrou|
|00000a20| 74 69 6e 65 20 46 72 6f | 6d 20 74 68 65 20 53 6c |tine Fro|m the Sl|
|00000a30| 65 65 70 20 51 75 65 75 | 65 20 62 75 74 20 4d 79 |eep Queu|e but My|
|00000a40| 20 44 69 61 6c 6f 67 20 | 42 6f 78 20 4e 65 76 65 | Dialog |Box Neve|
|00000a50| 72 20 47 65 74 73 20 44 | 72 61 77 6e 2e 20 57 68 |r Gets D|rawn. Wh|
|00000a60| 79 3f 0d 54 6f 20 64 72 | 61 77 20 79 6f 75 72 20 |y?.To dr|aw your |
|00000a70| 64 69 61 6c 6f 67 20 62 | 6f 78 2c 20 79 6f 75 20 |dialog b|ox, you |
|00000a80| 6e 65 65 64 20 74 6f 20 | 72 65 73 74 6f 72 65 20 |need to |restore |
|00000a90| 79 6f 75 72 20 41 35 20 | 77 6f 72 6c 64 20 73 6f |your A5 |world so|
|00000aa0| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 79 6f 75 | you can| use you|
|00000ab0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |r applic|ation.s |
|00000ac0| 64 61 74 61 20 61 6e 64 | 20 6a 75 6d 70 20 74 61 |data and| jump ta|
|00000ad0| 62 6c 65 2e 20 54 6f 20 | 64 6f 20 74 68 69 73 2c |ble. To |do this,|
|00000ae0| 20 79 6f 75 20 77 69 6c | 6c 20 6e 65 65 64 20 74 | you wil|l need t|
|00000af0| 6f 20 73 61 76 65 20 61 | 20 63 6f 70 79 20 6f 66 |o save a| copy of|
|00000b00| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00000b10| 6e d5 73 20 41 35 20 74 | 6f 20 61 20 6d 65 6d 6f |n.s A5 t|o a memo|
|00000b20| 72 79 20 6c 6f 63 61 74 | 69 6f 6e 20 79 6f 75 72 |ry locat|ion your|
|00000b30| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 63 61 6e 20 | subrout|ine can |
|00000b40| 66 69 6e 64 20 6c 61 74 | 65 72 2e 20 41 20 67 6f |find lat|er. A go|
|00000b50| 6f 64 20 74 69 6d 65 20 | 74 6f 20 64 6f 20 74 68 |od time |to do th|
|00000b60| 69 73 20 69 73 20 77 68 | 65 6e 20 79 6f 75 20 69 |is is wh|en you i|
|00000b70| 6e 73 74 61 6c 6c 20 79 | 6f 75 72 20 73 6c 65 65 |nstall y|our slee|
|00000b80| 70 20 71 75 65 75 65 20 | 72 6f 75 74 69 6e 65 2e |p queue |routine.|
|00000b90| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | The fol|lowing c|
|00000ba0| 6f 64 65 20 64 65 6d 6f | 6e 73 74 72 61 74 65 73 |ode demo|nstrates|
|00000bb0| 20 68 6f 77 20 74 6f 20 | 64 6f 20 74 68 69 73 3a | how to |do this:|
|00000bc0| 0d 4d 79 41 35 72 65 66 | 09 50 52 4f 43 09 45 58 |.MyA5ref|.PROC.EX|
|00000bd0| 50 4f 52 54 09 09 3b 20 | 73 74 6f 72 65 20 6f 75 |PORT..; |store ou|
|00000be0| 72 20 41 35 20 69 6e 20 | 6d 65 6d 6f 72 79 0d 09 |r A5 in |memory..|
|00000bf0| 09 44 53 2e 4c 20 09 31 | 09 3b 20 6c 6f 63 61 74 |.DS.L .1|.; locat|
|00000c00| 69 6f 6e 20 72 65 66 65 | 72 65 6e 63 65 64 20 62 |ion refe|renced b|
|00000c10| 79 0d 09 09 09 09 3b 20 | 6d 79 41 35 72 65 66 0d |y.....; |myA5ref.|
|00000c20| 09 09 45 4e 44 50 0d 53 | 74 6f 72 65 41 35 52 65 |..ENDP.S|toreA5Re|
|00000c30| 66 09 50 52 4f 43 09 45 | 58 50 4f 52 54 0d 09 09 |f.PROC.E|XPORT...|
|00000c40| 49 4d 50 4f 52 54 09 4d | 79 41 35 52 65 66 0d 09 |IMPORT.M|yA5Ref..|
|00000c50| 09 4c 45 41 20 09 4d 79 | 41 35 72 65 66 2c 61 30 |.LEA .My|A5ref,a0|
|00000c60| 09 3b 20 70 6f 69 6e 74 | 20 74 6f 20 6f 75 72 20 |.; point| to our |
|00000c70| 73 74 6f 72 61 67 65 20 | 61 72 65 61 0d 09 09 4d |storage |area...M|
|00000c80| 4f 56 45 2e 4c 20 09 34 | 28 73 70 29 2c 64 30 09 |OVE.L .4|(sp),d0.|
|00000c90| 0d 09 09 4d 4f 56 45 2e | 4c 20 09 64 30 2c 28 61 |...MOVE.|L .d0,(a|
|00000ca0| 30 29 09 3b 20 73 61 76 | 65 20 61 20 63 6f 70 79 |0).; sav|e a copy|
|00000cb0| 20 6f 66 20 6f 75 72 20 | 41 35 20 74 68 65 72 65 | of our |A5 there|
|00000cc0| 0d 09 09 52 54 53 0d 09 | 09 45 4e 44 50 0d 44 6f |...RTS..|.ENDP.Do|
|00000cd0| 53 6c 65 65 70 09 50 52 | 4f 43 09 45 58 50 4f 52 |Sleep.PR|OC.EXPOR|
|00000ce0| 54 0d 09 09 49 4d 50 4f | 52 54 20 09 4d 79 41 35 |T...IMPO|RT .MyA5|
|00000cf0| 52 65 66 2c 73 6c 65 65 | 70 64 6d 64 0d 09 09 4c |Ref,slee|pdmd...L|
|00000d00| 45 41 20 09 09 4d 79 41 | 35 72 65 66 2c 41 30 09 |EA ..MyA|5ref,A0.|
|00000d10| 3b 20 70 6f 69 6e 74 20 | 74 6f 20 6f 75 72 20 73 |; point |to our s|
|00000d20| 74 6f 72 61 67 65 20 61 | 72 65 61 2e 0d 09 09 4d |torage a|rea....M|
|00000d30| 4f 56 45 2e 4c 20 09 28 | 61 30 29 2c 2d 28 73 70 |OVE.L .(|a0),-(sp|
|00000d40| 29 09 3b 20 70 75 73 68 | 20 6f 75 72 20 73 61 76 |).; push| our sav|
|00000d50| 65 64 20 41 35 20 6f 6e | 74 6f 20 74 68 65 20 09 |ed A5 on|to the .|
|00000d60| 09 09 09 09 3b 20 73 74 | 61 63 6b 0d 09 09 4a 53 |....; st|ack...JS|
|00000d70| 52 20 09 09 73 6c 65 65 | 70 64 6d 64 09 3b 20 63 |R ..slee|pdmd.; c|
|00000d80| 61 6c 6c 20 6f 75 72 20 | 43 20 72 6f 75 74 69 6e |all our |C routin|
|00000d90| 65 0d 09 09 41 44 44 51 | 20 09 09 23 34 2c 73 70 |e...ADDQ| ..#4,sp|
|00000da0| 20 09 3b 57 65 20 6e 65 | 65 64 20 74 6f 20 63 6c | .;We ne|ed to cl|
|00000db0| 65 61 72 20 74 68 65 20 | 73 74 61 63 6b 20 09 09 |ear the |stack ..|
|00000dc0| 09 09 09 3b 20 73 69 6e | 63 65 20 0d 09 09 52 54 |...; sin|ce ...RT|
|00000dd0| 53 09 09 09 3b 43 20 72 | 6f 75 74 69 6e 65 73 20 |S...;C r|outines |
|00000de0| 63 6c 65 61 72 20 74 68 | 65 20 73 74 61 63 6b 20 |clear th|e stack |
|00000df0| 6f 6e 20 09 09 09 09 09 | 3b 20 65 6e 74 72 79 0d |on .....|; entry.|
|00000e00| 2e 09 09 45 4e 44 50 09 | 09 09 3b 50 61 73 63 61 |...ENDP.|..;Pasca|
|00000e10| 6c 20 72 6f 75 74 69 6e | 65 73 20 63 6c 65 61 72 |l routin|es clear|
|00000e20| 20 74 68 65 20 09 09 09 | 09 09 3b 20 73 74 61 63 | the ...|..; stac|
|00000e30| 6b 20 6f 6e 20 65 78 69 | 74 2e 0d 41 66 74 65 72 |k on exi|t..After|
|00000e40| 20 74 68 69 73 20 69 73 | 20 64 6f 6e 65 20 79 6f | this is| done yo|
|00000e50| 75 20 77 69 6c 6c 20 6e | 65 65 64 20 74 6f 20 73 |u will n|eed to s|
|00000e60| 61 76 65 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ave the |current |
|00000e70| 41 35 20 61 6e 64 20 72 | 65 73 74 6f 72 65 20 41 |A5 and r|estore A|
|00000e80| 35 20 69 6e 20 79 6f 75 | 72 20 73 6c 65 65 70 20 |5 in you|r sleep |
|00000e90| 73 75 62 72 6f 75 74 69 | 6e 65 20 61 73 20 66 6f |subrouti|ne as fo|
|00000ea0| 6c 6c 6f 77 73 3a 0d 76 | 6f 69 64 20 53 4c 45 45 |llows:.v|oid SLEE|
|00000eb0| 50 44 4d 44 28 6c 6f 6e | 67 20 74 68 65 41 35 29 |PDMD(lon|g theA5)|
|00000ec0| 20 7b 0d 09 0d 09 73 68 | 6f 72 74 09 09 69 74 65 | {....sh|ort..ite|
|00000ed0| 6d 20 3d 20 30 3b 0d 09 | 6c 6f 6e 67 09 09 6f 6c |m = 0;..|long..ol|
|00000ee0| 64 41 35 3b 0d 09 44 69 | 61 6c 6f 67 50 74 72 09 |dA5;..Di|alogPtr.|
|00000ef0| 6d 79 44 69 61 6c 6f 67 | 3b 0d 09 0d 09 6f 6c 64 |myDialog|;....old|
|00000f00| 41 35 20 3d 20 53 65 74 | 43 75 72 72 65 6e 74 41 |A5 = Set|CurrentA|
|00000f10| 35 28 29 3b 0d 09 53 65 | 74 41 35 28 74 68 65 41 |5();..Se|tA5(theA|
|00000f20| 35 29 3b 0d 09 0d 09 2f | 2f 20 44 6f 20 77 68 61 |5);..../|/ Do wha|
|00000f30| 74 65 76 65 72 20 79 6f | 75 20 6e 65 65 64 20 74 |tever yo|u need t|
|00000f40| 6f 20 64 6f 20 68 65 72 | 65 20 74 6f 20 73 68 6f |o do her|e to sho|
|00000f50| 77 20 79 6f 75 72 20 64 | 69 61 6c 6f 67 20 62 6f |w your d|ialog bo|
|00000f60| 78 2e 0d 09 2f 2f 20 54 | 68 65 20 6f 6e 65 20 74 |x...// T|he one t|
|00000f70| 68 69 6e 67 20 74 6f 20 | 72 65 6d 65 6d 62 65 72 |hing to |remember|
|00000f80| 20 69 73 20 74 68 61 74 | 20 69 66 20 61 64 64 69 | is that| if addi|
|00000f90| 6e 67 20 61 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |ng a dia|log box |
|00000fa0| 69 6e 20 0d 09 2f 2f 20 | 79 6f 75 72 20 73 6c 65 |in ..// |your sle|
|00000fb0| 65 70 51 72 6f 75 74 69 | 6e 65 2c 20 79 6f 75 20 |epQrouti|ne, you |
|00000fc0| 73 68 6f 75 6c 64 20 61 | 6c 77 61 79 73 20 6d 61 |should a|lways ma|
|00000fd0| 6b 65 20 69 74 20 61 20 | 64 69 61 6c 6f 67 20 62 |ke it a |dialog b|
|00000fe0| 6f 78 20 0d 09 2f 2f 20 | 74 68 61 74 20 74 69 6d |ox ..// |that tim|
|00000ff0| 65 73 20 6f 75 74 2e 20 | 49 66 20 74 68 65 20 75 |es out. |If the u|
|00001000| 73 65 72 20 69 73 20 6e | 6f 74 20 70 72 65 73 65 |ser is n|ot prese|
|00001010| 6e 74 20 74 6f 20 61 6e | 73 77 65 72 20 74 68 65 |nt to an|swer the|
|00001020| 20 0d 09 2f 2f 20 61 6c | 65 72 74 20 62 6f 78 20 | ..// al|ert box |
|00001030| 6f 72 20 64 69 61 6c 6f | 67 20 62 6f 78 2c 20 63 |or dialo|g box, c|
|00001040| 6f 6e 74 72 6f 6c 20 69 | 73 20 6e 65 76 65 72 20 |ontrol i|s never |
|00001050| 72 65 74 75 72 6e 65 64 | 20 74 6f 20 74 68 65 20 |returned| to the |
|00001060| 0d 09 2f 2f 20 50 6f 77 | 65 72 20 4d 61 6e 61 67 |..// Pow|er Manag|
|00001070| 65 72 2c 20 61 6e 64 20 | 74 68 65 20 70 6f 72 74 |er, and |the port|
|00001080| 61 62 6c 65 20 64 6f 65 | 73 20 6e 6f 74 20 67 6f |able doe|s not go|
|00001090| 20 74 6f 20 73 6c 65 65 | 70 2e 20 54 68 69 73 20 | to slee|p. This |
|000010a0| 69 73 20 61 20 0d 09 2f | 2f 20 67 72 65 61 74 20 |is a ../|/ great |
|000010b0| 77 61 79 20 74 6f 20 70 | 65 72 6d 61 6e 65 6e 74 |way to p|ermanent|
|000010c0| 6c 79 20 62 75 72 6e 20 | 69 6e 20 75 6e 77 61 6e |ly burn |in unwan|
|000010d0| 74 65 64 20 69 6d 61 67 | 65 73 20 69 6e 20 79 6f |ted imag|es in yo|
|000010e0| 75 72 20 73 63 72 65 65 | 6e 21 20 0d 09 20 20 20 |ur scree|n! .. |
|000010f0| 20 3a 0d 09 20 20 20 20 | 3a 0d 09 2f 2f 20 53 65 | :.. |:..// Se|
|00001100| 74 41 35 28 6f 6c 64 41 | 35 29 3b 0d 49 20 75 73 |tA5(oldA|5);.I us|
|00001110| 65 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ed the f|ollowing|
|00001120| 20 63 6f 64 65 20 74 6f | 20 6d 61 6b 65 20 73 75 | code to| make su|
|00001130| 72 65 20 74 68 61 74 20 | 6d 79 20 64 69 61 6c 6f |re that |my dialo|
|00001140| 67 20 62 6f 78 20 74 69 | 6d 65 64 20 6f 75 74 2e |g box ti|med out.|
|00001150| 20 59 6f 75 20 6d 61 79 | 20 68 61 76 65 20 79 6f | You may| have yo|
|00001160| 75 72 20 6f 77 6e 20 73 | 70 65 63 69 61 6c 20 74 |ur own s|pecial t|
|00001170| 65 63 68 6e 69 71 75 65 | 20 66 6f 72 20 74 69 6d |echnique| for tim|
|00001180| 69 6e 67 20 6f 75 74 20 | 79 6f 75 72 20 64 69 61 |ing out |your dia|
|00001190| 6c 6f 67 20 62 6f 78 2c | 20 62 75 74 20 6e 65 76 |log box,| but nev|
|000011a0| 65 72 74 68 65 6c 65 73 | 73 20 79 6f 75 20 6d 75 |ertheles|s you mu|
|000011b0| 73 74 20 65 6e 73 75 72 | 65 20 74 68 61 74 20 74 |st ensur|e that t|
|000011c0| 68 65 20 64 69 61 6c 6f | 67 20 62 6f 78 20 77 69 |he dialo|g box wi|
|000011d0| 6c 6c 20 74 69 6d 65 20 | 6f 75 74 20 69 6e 20 63 |ll time |out in c|
|000011e0| 61 73 65 20 74 68 65 20 | 75 73 65 72 20 69 73 20 |ase the |user is |
|000011f0| 6e 6f 74 20 70 72 65 73 | 65 6e 74 20 74 6f 20 61 |not pres|ent to a|
|00001200| 6e 73 77 65 72 20 74 68 | 65 20 64 69 61 6c 6f 67 |nswer th|e dialog|
|00001210| 20 62 6f 78 2e 20 0d 76 | 6f 69 64 20 54 69 6d 65 | box. .v|oid Time|
|00001220| 6f 75 74 44 69 61 6c 6f | 67 28 73 68 6f 72 74 20 |outDialo|g(short |
|00001230| 64 69 61 6c 6f 67 49 44 | 2c 20 6c 6f 6e 67 20 64 |dialogID|, long d|
|00001240| 75 72 61 74 69 6f 6e 29 | 0d 7b 0d 20 20 20 20 73 |uration)|.{. s|
|00001250| 68 6f 72 74 20 69 74 65 | 6d 48 69 74 20 3d 20 30 |hort ite|mHit = 0|
|00001260| 3b 0d 20 20 20 20 6c 6f | 6e 67 20 73 74 61 72 74 |;. lo|ng start|
|00001270| 54 69 63 6b 73 20 3d 20 | 30 3b 0d 20 20 20 20 44 |Ticks = |0;. D|
|00001280| 69 61 6c 6f 67 50 74 72 | 20 64 69 61 6c 6f 67 20 |ialogPtr| dialog |
|00001290| 3d 20 6e 69 6c 3b 0d 20 | 20 20 20 64 69 61 6c 6f |= nil;. | dialo|
|000012a0| 67 20 3d 20 47 65 74 4e | 65 77 44 69 61 6c 6f 67 |g = GetN|ewDialog|
|000012b0| 28 64 69 61 6c 6f 67 49 | 44 2c 20 6e 69 6c 2c 20 |(dialogI|D, nil, |
|000012c0| 28 57 69 6e 64 6f 77 50 | 74 72 29 20 2d 31 29 3b |(WindowP|tr) -1);|
|000012d0| 0d 20 20 20 20 53 68 6f | 77 57 69 6e 64 6f 77 28 |. Sho|wWindow(|
|000012e0| 64 69 61 6c 6f 67 29 3b | 0d 20 20 20 20 73 74 61 |dialog);|. sta|
|000012f0| 72 74 54 69 63 6b 73 20 | 3d 20 54 69 63 6b 43 6f |rtTicks |= TickCo|
|00001300| 75 6e 74 28 29 3b 0d 20 | 20 20 20 77 68 69 6c 65 |unt();. | while|
|00001310| 28 28 28 54 69 63 6b 43 | 6f 75 6e 74 20 2d 20 73 |(((TickC|ount - s|
|00001320| 74 61 72 74 54 69 63 6b | 73 29 20 3c 20 64 75 72 |tartTick|s) < dur|
|00001330| 61 74 69 6f 6e 29 20 26 | 26 20 28 69 74 65 6d 48 |ation) &|& (itemH|
|00001340| 69 74 20 21 3d 0d 20 20 | 20 20 6b 4f 4b 42 75 74 |it !=. | kOKBut|
|00001350| 74 6f 6e 49 74 65 6d 49 | 44 29 29 0d 20 20 20 20 |tonItemI|D)). |
|00001360| 7b 0d 20 20 20 20 4d 6f | 64 61 6c 44 69 61 6c 6f |{. Mo|dalDialo|
|00001370| 67 28 6e 69 6c 2c 20 26 | 69 74 65 6d 48 69 74 29 |g(nil, &|itemHit)|
|00001380| 3b 0d 20 20 20 20 7d 0d | 20 20 20 20 44 69 73 70 |;. }.| Disp|
|00001390| 6f 73 65 44 69 61 6c 6f | 67 28 64 69 61 6c 6f 67 |oseDialo|g(dialog|
|000013a0| 29 3b 0d 7d 0d 54 68 65 | 20 53 6c 65 65 70 20 51 |);.}.The| Sleep Q|
|000013b0| 75 65 75 65 20 43 61 6c | 6c 73 20 4d 79 20 53 75 |ueue Cal|ls My Su|
|000013c0| 62 72 6f 75 74 69 6e 65 | 20 62 75 74 20 49 74 20 |broutine| but It |
|000013d0| 43 61 6e 6e 6f 74 20 46 | 69 6e 64 20 4d 79 20 44 |Cannot F|ind My D|
|000013e0| 69 61 6c 6f 67 20 42 6f | 78 2e 20 20 0d 49 6e 20 |ialog Bo|x. .In |
|000013f0| 74 68 65 20 73 61 6d 65 | 20 77 61 79 20 74 68 61 |the same| way tha|
|00001400| 74 20 74 68 65 20 46 69 | 6e 64 65 72 d5 73 20 77 |t the Fi|nder.s w|
|00001410| 6f 72 6c 64 20 69 73 20 | 75 6e 61 62 6c 65 20 74 |orld is |unable t|
|00001420| 6f 20 66 69 6e 64 20 79 | 6f 75 72 20 61 70 70 6c |o find y|our appl|
|00001430| 69 63 61 74 69 6f 6e d5 | 73 20 67 6c 6f 62 61 6c |ication.|s global|
|00001440| 73 20 28 62 65 63 61 75 | 73 65 20 74 68 65 79 20 |s (becau|se they |
|00001450| 72 65 73 69 64 65 20 69 | 6e 20 79 6f 75 72 20 61 |reside i|n your a|
|00001460| 70 70 6c 69 63 61 74 69 | 6f 6e d5 73 20 41 35 20 |pplicati|on.s A5 |
|00001470| 77 6f 72 6c 64 29 2c 20 | 74 68 65 20 46 69 6e 64 |world), |the Find|
|00001480| 65 72 20 69 73 20 61 6c | 73 6f 20 75 6e 61 62 6c |er is al|so unabl|
|00001490| 65 20 74 6f 20 61 63 63 | 65 73 73 20 79 6f 75 72 |e to acc|ess your|
|000014a0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 d5 73 20 72 65 | dialog |box.s re|
|000014b0| 73 6f 75 72 63 65 2e 20 | 57 68 65 6e 20 74 68 65 |source. |When the|
|000014c0| 20 75 73 65 72 20 63 68 | 6f 6f 73 65 73 20 53 6c | user ch|ooses Sl|
|000014d0| 65 65 70 20 66 72 6f 6d | 20 74 68 65 20 6d 65 6e |eep from| the men|
|000014e0| 75 2c 20 74 68 65 20 46 | 69 6e 64 65 72 20 74 72 |u, the F|inder tr|
|000014f0| 69 65 73 20 74 6f 20 61 | 63 63 65 73 73 20 74 68 |ies to a|ccess th|
|00001500| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |e applic|ation.s |
|00001510| 64 69 61 6c 6f 67 20 72 | 65 73 6f 75 72 63 65 2e |dialog r|esource.|
|00001520| 20 54 68 65 20 46 69 6e | 64 65 72 20 6b 6e 6f 77 | The Fin|der know|
|00001530| 73 20 6e 6f 74 68 69 6e | 67 20 61 62 6f 75 74 20 |s nothin|g about |
|00001540| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |the appl|ication.|
|00001550| 73 20 72 65 73 6f 75 72 | 63 65 20 6c 69 73 74 2c |s resour|ce list,|
|00001560| 20 6e 6f 72 20 64 6f 65 | 73 20 69 74 20 68 61 76 | nor doe|s it hav|
|00001570| 65 20 61 63 63 65 73 73 | 20 74 6f 20 69 74 2e 20 |e access| to it. |
|00001580| 49 74 20 63 61 6e 20 6f | 6e 6c 79 20 6c 6f 6f 6b |It can o|nly look|
|00001590| 20 74 6f 20 69 74 73 20 | 6f 77 6e 20 72 65 73 6f | to its |own reso|
|000015a0| 75 72 63 65 20 6c 69 73 | 74 20 74 6f 20 73 65 65 |urce lis|t to see|
|000015b0| 20 69 66 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 | if the |dialog b|
|000015c0| 6f 78 20 63 61 6e 20 62 | 65 20 66 6f 75 6e 64 2e |ox can b|e found.|
|000015d0| 20 54 6f 20 72 65 73 6f | 6c 76 65 20 74 68 69 73 | To reso|lve this|
|000015e0| 20 73 69 74 75 61 74 69 | 6f 6e 20 77 65 20 77 69 | situati|on we wi|
|000015f0| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 75 73 65 20 74 |ll need |to use t|
|00001600| 68 65 20 73 61 6d 65 20 | 74 72 69 63 6b 20 77 65 |he same |trick we|
|00001610| 20 75 73 65 64 20 61 62 | 6f 76 65 2e 20 57 65 20 | used ab|ove. We |
|00001620| 6e 65 65 64 20 74 6f 20 | 73 61 76 65 20 6f 75 72 |need to |save our|
|00001630| 20 64 69 61 6c 6f 67 20 | 62 6f 78 d5 73 20 72 65 | dialog |box.s re|
|00001640| 73 6f 75 72 63 65 20 73 | 6f 20 74 68 61 74 20 69 |source s|o that i|
|00001650| 74 20 77 69 6c 6c 20 62 | 65 20 72 65 61 64 69 6c |t will b|e readil|
|00001660| 79 20 61 76 61 69 6c 61 | 62 6c 65 20 77 68 65 6e |y availa|ble when|
|00001670| 20 77 65 20 63 61 6c 6c | 20 66 6f 72 20 69 74 2e | we call| for it.|
|00001680| 0d 59 6f 75 20 6d 69 67 | 68 74 20 62 65 20 74 65 |.You mig|ht be te|
|00001690| 6d 70 74 65 64 20 74 6f | 20 63 72 65 61 74 65 20 |mpted to| create |
|000016a0| 61 20 44 4c 4f 47 2f 44 | 49 54 4c 20 70 61 69 72 |a DLOG/D|ITL pair|
|000016b0| 2c 20 74 68 65 6e 20 63 | 61 6c 6c 20 47 65 74 4e |, then c|all GetN|
|000016c0| 65 77 44 69 61 6c 6f 67 | 20 61 74 20 61 70 70 6c |ewDialog| at appl|
|000016d0| 69 63 61 74 69 6f 6e 20 | 73 74 61 72 74 75 70 20 |ication |startup |
|000016e0| 74 69 6d 65 20 61 6e 64 | 20 73 61 76 65 20 79 6f |time and| save yo|
|000016f0| 75 72 20 64 69 61 6c 6f | 67 50 74 72 20 61 77 61 |ur dialo|gPtr awa|
|00001700| 79 20 66 6f 72 20 6c 61 | 74 65 72 20 75 73 65 20 |y for la|ter use |
|00001710| 62 79 20 74 68 65 20 73 | 6c 65 65 70 20 72 6f 75 |by the s|leep rou|
|00001720| 74 69 6e 65 2e 20 48 6f | 77 65 76 65 72 2c 20 74 |tine. Ho|wever, t|
|00001730| 68 69 73 20 77 69 6c 6c | 20 6e 6f 74 20 77 6f 72 |his will| not wor|
|00001740| 6b 20 62 65 63 61 75 73 | 65 20 74 68 65 20 64 69 |k becaus|e the di|
|00001750| 61 6c 6f 67 20 62 6f 78 | 20 77 69 6c 6c 20 62 65 |alog box| will be|
|00001760| 20 63 72 65 61 74 65 64 | 20 69 6e 20 79 6f 75 72 | created| in your|
|00001770| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 77 | applica|tion.s w|
|00001780| 69 6e 64 6f 77 20 6c 61 | 79 65 72 2c 20 73 6f 20 |indow la|yer, so |
|00001790| 77 68 65 6e 20 79 6f 75 | 20 74 72 79 20 74 6f 20 |when you| try to |
|000017a0| 73 68 6f 77 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |show the| window |
|000017b0| 6c 61 74 65 72 2c 20 69 | 74 20 77 69 6c 6c 20 61 |later, i|t will a|
|000017c0| 70 70 65 61 72 20 62 65 | 68 69 6e 64 20 74 68 65 |ppear be|hind the|
|000017d0| 20 66 72 6f 6e 74 6d 6f | 73 74 20 61 70 70 6c 69 | frontmo|st appli|
|000017e0| 63 61 74 69 6f 6e 20 28 | 75 73 75 61 6c 6c 79 20 |cation (|usually |
|000017f0| 74 68 65 20 46 69 6e 64 | 65 72 29 20 77 68 65 6e |the Find|er) when|
|00001800| 20 74 68 65 20 70 6f 72 | 74 61 62 6c 65 20 69 73 | the por|table is|
|00001810| 20 70 75 74 20 74 6f 20 | 73 6c 65 65 70 2e 0d 4f | put to |sleep..O|
|00001820| 6e 65 20 77 61 79 20 61 | 72 6f 75 6e 64 20 74 68 |ne way a|round th|
|00001830| 69 73 20 69 73 20 74 6f | 20 63 72 65 61 74 65 20 |is is to| create |
|00001840| 74 68 65 20 64 69 61 6c | 6f 67 20 62 6f 78 20 66 |the dial|og box f|
|00001850| 72 6f 6d 20 73 63 72 61 | 74 63 68 20 75 73 69 6e |rom scra|tch usin|
|00001860| 67 20 4e 65 77 44 69 61 | 6c 6f 67 20 61 74 20 73 |g NewDia|log at s|
|00001870| 6c 65 65 70 20 74 69 6d | 65 2e 20 54 68 69 73 20 |leep tim|e. This |
|00001880| 65 6e 73 75 72 65 73 20 | 74 68 61 74 20 74 68 65 |ensures |that the|
|00001890| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 69 73 20 63 | dialog |box is c|
|000018a0| 72 65 61 74 65 64 20 61 | 6e 64 20 64 72 61 77 6e |reated a|nd drawn|
|000018b0| 20 69 6e 20 74 68 65 20 | 66 72 6f 6e 74 6d 6f 73 | in the |frontmos|
|000018c0| 74 20 77 69 6e 64 6f 77 | 20 6c 61 79 65 72 20 77 |t window| layer w|
|000018d0| 68 65 6e 20 74 68 65 20 | 50 6f 77 65 72 42 6f 6f |hen the |PowerBoo|
|000018e0| 6b 20 74 72 69 65 73 20 | 74 6f 20 67 6f 20 74 6f |k tries |to go to|
|000018f0| 20 73 6c 65 65 70 2e 20 | 59 6f 75 20 64 6f 20 6e | sleep. |You do n|
|00001900| 6f 74 20 6e 65 65 64 20 | 74 6f 20 63 72 65 61 74 |ot need |to creat|
|00001910| 65 20 74 68 65 20 64 69 | 61 6c 6f 67 20 62 6f 78 |e the di|alog box|
|00001920| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 66 72 6f 6d | complet|ely from|
|00001930| 20 73 63 72 61 74 63 68 | 2e 20 59 6f 75 20 63 61 | scratch|. You ca|
|00001940| 6e 20 72 65 61 64 20 74 | 68 65 20 69 74 65 6d 73 |n read t|he items|
|00001950| 20 69 6e 20 66 72 6f 6d | 20 61 20 72 65 73 6f 75 | in from| a resou|
|00001960| 72 63 65 20 61 74 20 61 | 70 70 6c 69 63 61 74 69 |rce at a|pplicati|
|00001970| 6f 6e 20 73 74 61 72 74 | 75 70 20 74 69 6d 65 2c |on start|up time,|
|00001980| 20 73 61 76 65 20 74 68 | 65 20 68 61 6e 64 6c 65 | save th|e handle|
|00001990| 20 61 77 61 79 2c 20 74 | 68 65 6e 20 70 61 73 73 | away, t|hen pass|
|000019a0| 20 74 68 69 73 20 69 74 | 65 6d 20 68 61 6e 64 6c | this it|em handl|
|000019b0| 65 20 74 6f 20 4e 65 77 | 44 69 61 6c 6f 67 2e 20 |e to New|Dialog. |
|000019c0| 54 68 65 6e 20 61 6c 6c | 20 79 6f 75 20 68 61 76 |Then all| you hav|
|000019d0| 65 20 74 6f 20 73 70 65 | 63 69 66 79 20 69 73 20 |e to spe|cify is |
|000019e0| 74 68 65 20 64 69 61 6c | 6f 67 20 62 6f 78 d5 73 |the dial|og box.s|
|000019f0| 20 72 65 63 74 61 6e 67 | 6c 65 2e 0d 54 68 69 73 | rectang|le..This|
|00001a00| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 79 6f 75 20 | means t|hat you |
|00001a10| 77 69 6c 6c 20 6e 65 65 | 64 20 74 6f 20 73 61 76 |will nee|d to sav|
|00001a20| 65 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |e your a|pplicati|
|00001a30| 6f 6e d5 73 20 41 35 2c | 20 74 68 65 20 68 61 6e |on.s A5,| the han|
|00001a40| 64 6c 65 20 74 6f 20 74 | 68 65 20 64 69 61 6c 6f |dle to t|he dialo|
|00001a50| 67 20 62 6f 78 d5 73 20 | 44 49 54 4c 2c 20 61 6e |g box.s |DITL, an|
|00001a60| 64 20 74 68 65 20 70 6f | 69 6e 74 65 72 20 74 6f |d the po|inter to|
|00001a70| 20 74 68 65 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 | the dia|log box |
|00001a80| 69 74 73 65 6c 66 2e 20 | 54 68 69 73 20 77 69 6c |itself. |This wil|
|00001a90| 6c 20 65 6e 73 75 72 65 | 20 74 68 61 74 20 79 6f |l ensure| that yo|
|00001aa0| 75 20 77 69 6c 6c 20 62 | 65 20 70 72 6f 70 65 72 |u will b|e proper|
|00001ab0| 6c 79 20 70 6f 69 6e 74 | 69 6e 67 20 79 6f 75 72 |ly point|ing your|
|00001ac0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 77 | applica|tion.s w|
|00001ad0| 69 6e 64 6f 77 20 6c 61 | 79 65 72 20 61 6e 64 20 |indow la|yer and |
|00001ae0| 74 68 61 74 20 79 6f 75 | 72 20 64 69 61 6c 6f 67 |that you|r dialog|
|00001af0| 20 62 6f 78 20 77 69 6c | 6c 20 62 65 20 74 68 65 | box wil|l be the|
|00001b00| 20 66 72 6f 6e 74 6d 6f | 73 74 20 77 69 6e 64 6f | frontmo|st windo|
|00001b10| 77 20 77 68 65 6e 20 69 | 74 20 61 70 70 65 61 72 |w when i|t appear|
|00001b20| 73 2e 0d 54 68 65 72 65 | 66 6f 72 65 2c 20 69 6e |s..There|fore, in|
|00001b30| 20 79 6f 75 72 20 69 6e | 69 74 69 61 6c 69 7a 65 | your in|itialize|
|00001b40| 20 72 6f 75 74 69 6e 65 | 20 79 6f 75 72 20 63 6f | routine| your co|
|00001b50| 64 65 20 77 69 6c 6c 20 | 6c 6f 6f 6b 20 61 73 20 |de will |look as |
|00001b60| 66 6f 6c 6c 6f 77 73 3a | 0d 76 6f 69 64 20 49 6e |follows:|.void In|
|00001b70| 69 74 69 61 6c 69 7a 65 | 28 29 0d 7b 0d 09 49 6e |itialize|().{..In|
|00001b80| 69 74 47 72 61 66 28 28 | 50 74 72 29 20 26 71 64 |itGraf((|Ptr) &qd|
|00001b90| 2e 74 68 65 50 6f 72 74 | 29 3b 0d 09 49 6e 69 74 |.thePort|);..Init|
|00001ba0| 46 6f 6e 74 73 28 29 3b | 0d 09 49 6e 69 74 57 69 |Fonts();|..InitWi|
|00001bb0| 6e 64 6f 77 73 28 29 3b | 0d 09 49 6e 69 74 4d 65 |ndows();|..InitMe|
|00001bc0| 6e 75 73 28 29 3b 0d 09 | 54 45 49 6e 69 74 28 29 |nus();..|TEInit()|
|00001bd0| 3b 0d 09 49 6e 69 74 44 | 69 61 6c 6f 67 73 28 6e |;..InitD|ialogs(n|
|00001be0| 69 6c 29 3b 0d 09 49 6e | 69 74 43 75 72 73 6f 72 |il);..In|itCursor|
|00001bf0| 28 29 3b 0d 09 0d 09 67 | 44 69 74 6c 48 61 6e 64 |();....g|DitlHand|
|00001c00| 6c 65 20 3d 20 47 65 74 | 31 52 65 73 6f 75 72 63 |le = Get|1Resourc|
|00001c10| 65 28 27 44 49 54 4c 27 | 2c 20 31 33 30 29 3b 0d |e('DITL'|, 130);.|
|00001c20| 09 2f 2f 20 65 72 72 6f | 72 20 63 68 65 63 6b 69 |.// erro|r checki|
|00001c30| 6e 67 20 68 65 72 65 0d | 09 53 54 4f 52 45 41 35 |ng here.|.STOREA5|
|00001c40| 52 45 46 28 67 4d 79 44 | 69 61 6c 6f 67 2c 20 67 |REF(gMyD|ialog, g|
|00001c50| 44 69 74 6c 48 61 6e 64 | 6c 65 2c 20 53 65 74 43 |DitlHand|le, SetC|
|00001c60| 75 72 72 65 6e 74 41 35 | 28 29 29 3b 0d 09 09 3a |urrentA5|());...:|
|00001c70| 0d 09 09 3a 0d 09 2f 2a | 20 69 6e 73 74 61 6c 6c |...:../*| install|
|00001c80| 20 6f 75 72 20 61 73 73 | 65 6d 62 6c 65 72 20 72 | our ass|embler r|
|00001c90| 6f 75 74 69 6e 65 20 69 | 6e 20 74 68 65 20 73 6c |outine i|n the sl|
|00001ca0| 65 65 70 20 70 72 6f 63 | 65 73 73 20 71 75 65 75 |eep proc|ess queu|
|00001cb0| 65 20 2a 2f 0d 09 6d 79 | 52 65 63 2e 73 6c 65 65 |e */..my|Rec.slee|
|00001cc0| 70 51 4c 69 6e 6b 20 3d | 20 30 3b 0d 09 6d 79 52 |pQLink =| 0;..myR|
|00001cd0| 65 63 2e 73 6c 65 65 70 | 51 54 79 70 65 20 3d 20 |ec.sleep|QType = |
|00001ce0| 73 6c 70 51 54 79 70 65 | 3b 0d 09 6d 79 52 65 63 |slpQType|;..myRec|
|00001cf0| 2e 73 6c 65 65 70 51 50 | 72 6f 63 20 3d 20 28 50 |.sleepQP|roc = (P|
|00001d00| 72 6f 63 50 74 72 29 20 | 26 73 6c 65 65 70 51 72 |rocPtr) |&sleepQr|
|00001d10| 6f 75 74 69 6e 65 3b 0d | 09 6d 79 52 65 63 2e 73 |outine;.|.myRec.s|
|00001d20| 6c 65 65 70 51 46 6c 61 | 67 73 20 3d 20 30 3b 0d |leepQFla|gs = 0;.|
|00001d30| 09 0d 09 53 6c 65 65 70 | 51 49 6e 73 74 61 6c 6c |...Sleep|QInstall|
|00001d40| 28 26 6d 79 52 65 63 29 | 3b 0d 09 09 3a 0d 09 09 |(&myRec)|;...:...|
|00001d50| 3a 0d 7d 20 2f 2a 20 49 | 6e 69 74 69 61 6c 69 7a |:.} /* I|nitializ|
|00001d60| 65 2a 2f 0d 41 6e 64 20 | 79 6f 75 72 20 61 73 73 |e*/.And |your ass|
|00001d70| 65 6d 62 6c 79 20 63 6f | 64 65 20 77 69 6c 6c 20 |embly co|de will |
|00001d80| 6c 6f 6f 6b 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |look as |follows:|
|00001d90| 0d 3b 20 48 65 72 65 27 | 73 20 77 68 65 72 65 20 |.; Here'|s where |
|00001da0| 77 65 20 6d 61 6b 65 20 | 73 74 6f 72 61 67 65 20 |we make |storage |
|00001db0| 66 6f 72 20 6f 75 72 20 | 64 69 61 6c 6f 67 20 70 |for our |dialog p|
|00001dc0| 74 72 2c 20 68 61 6e 64 | 6c 65 20 74 6f 20 6f 75 |tr, hand|le to ou|
|00001dd0| 72 20 44 49 54 4c 20 61 | 6e 64 0d 3b 20 79 6f 75 |r DITL a|nd.; you|
|00001de0| 72 20 41 35 2e 0d 4d 79 | 41 35 72 65 66 09 50 52 |r A5..My|A5ref.PR|
|00001df0| 4f 43 09 45 58 50 4f 52 | 54 0d 09 09 44 53 2e 4c |OC.EXPOR|T...DS.L|
|00001e00| 20 31 09 3b 20 73 74 6f | 72 61 67 65 20 66 6f 72 | 1.; sto|rage for|
|00001e10| 20 44 69 61 6c 6f 67 50 | 74 72 0d 09 09 44 53 2e | DialogP|tr...DS.|
|00001e20| 4c 20 31 09 3b 20 73 74 | 6f 72 61 67 65 20 66 6f |L 1.; st|orage fo|
|00001e30| 72 20 68 61 6e 64 6c 65 | 20 74 6f 20 44 49 54 4c |r handle| to DITL|
|00001e40| 0d 09 09 44 53 2e 4c 20 | 31 09 3b 20 73 74 6f 72 |...DS.L |1.; stor|
|00001e50| 61 67 65 20 66 6f 72 20 | 6f 75 72 20 73 61 76 65 |age for |our save|
|00001e60| 64 20 41 35 0d 20 09 09 | 45 4e 44 50 0d 3b 20 76 |d A5. ..|ENDP.; v|
|00001e70| 6f 69 64 20 53 74 6f 72 | 65 41 35 52 65 66 28 44 |oid Stor|eA5Ref(D|
|00001e80| 69 61 6c 6f 67 50 74 72 | 20 74 68 65 44 69 61 6c |ialogPtr| theDial|
|00001e90| 6f 67 2c 20 48 61 6e 64 | 6c 65 20 64 69 74 6c 48 |og, Hand|le ditlH|
|00001ea0| 61 6e 64 6c 65 2c 20 50 | 74 72 0d 3b 20 53 65 74 |andle, P|tr.; Set|
|00001eb0| 43 75 72 72 65 6e 74 41 | 35 28 29 29 3b 0d 53 74 |CurrentA|5());.St|
|00001ec0| 6f 72 65 41 35 52 65 66 | 09 50 52 4f 43 09 45 58 |oreA5Ref|.PROC.EX|
|00001ed0| 50 4f 52 54 0d 09 09 49 | 4d 50 4f 52 54 09 4d 79 |PORT...I|MPORT.My|
|00001ee0| 41 35 52 65 66 0d 20 09 | 09 4c 45 41 20 09 4d 79 |A5Ref. .|.LEA .My|
|00001ef0| 41 35 72 65 66 2c 61 30 | 0d 20 09 09 4d 4f 56 45 |A5ref,a0|. ..MOVE|
|00001f00| 2e 4c 20 09 24 34 28 73 | 70 29 2c 64 30 09 3b 20 |.L .$4(s|p),d0.; |
|00001f10| 67 72 61 62 20 6f 75 72 | 20 44 69 61 6c 6f 67 50 |grab our| DialogP|
|00001f20| 74 72 20 67 6c 6f 62 61 | 6c 0d 20 09 09 4d 4f 56 |tr globa|l. ..MOV|
|00001f30| 45 2e 4c 20 09 64 30 2c | 28 61 30 29 09 3b 20 73 |E.L .d0,|(a0).; s|
|00001f40| 74 6f 72 65 20 69 74 0d | 20 09 09 4d 4f 56 45 2e |tore it.| ..MOVE.|
|00001f50| 4c 20 09 24 38 28 73 70 | 29 2c 64 30 09 3b 20 67 |L .$8(sp|),d0.; g|
|00001f60| 72 61 62 20 6f 75 72 20 | 64 69 74 6c 48 61 6e 64 |rab our |ditlHand|
|00001f70| 6c 65 20 67 6c 6f 62 61 | 6c 0d 20 09 09 4d 4f 56 |le globa|l. ..MOV|
|00001f80| 45 2e 4c 20 09 64 30 2c | 34 28 61 30 29 09 3b 20 |E.L .d0,|4(a0).; |
|00001f90| 73 74 6f 72 65 20 69 74 | 0d 20 09 09 4d 4f 56 45 |store it|. ..MOVE|
|00001fa0| 2e 4c 20 09 24 43 28 73 | 70 29 2c 64 30 09 3b 20 |.L .$C(s|p),d0.; |
|00001fb0| 67 72 61 62 20 6f 75 72 | 20 73 61 76 65 64 20 41 |grab our| saved A|
|00001fc0| 35 0d 20 09 09 4d 4f 56 | 45 2e 4c 20 09 64 30 2c |5. ..MOV|E.L .d0,|
|00001fd0| 38 28 61 30 29 09 3b 20 | 73 74 6f 72 65 20 69 74 |8(a0).; |store it|
|00001fe0| 0d 09 09 52 54 53 0d 09 | 09 45 4e 44 50 0d 3b 20 |...RTS..|.ENDP.; |
|00001ff0| 76 6f 69 64 20 53 74 6f | 72 65 44 69 61 6c 6f 67 |void Sto|reDialog|
|00002000| 28 44 69 61 6c 6f 67 50 | 74 72 20 74 68 65 44 69 |(DialogP|tr theDi|
|00002010| 61 6c 6f 67 29 3b 0d 53 | 74 6f 72 65 44 69 61 6c |alog);.S|toreDial|
|00002020| 6f 67 09 50 52 4f 43 09 | 45 58 50 4f 52 54 0d 09 |og.PROC.|EXPORT..|
|00002030| 09 49 4d 50 4f 52 54 09 | 4d 79 41 35 52 65 66 0d |.IMPORT.|MyA5Ref.|
|00002040| 09 09 4c 45 41 20 09 4d | 79 41 35 72 65 66 2c 61 |..LEA .M|yA5ref,a|
|00002050| 30 0d 09 09 4d 4f 56 45 | 2e 4c 20 09 24 34 28 73 |0...MOVE|.L .$4(s|
|00002060| 70 29 2c 64 30 09 3b 20 | 67 72 61 62 20 6f 75 72 |p),d0.; |grab our|
|00002070| 20 44 69 61 6c 6f 67 50 | 74 72 20 67 6c 6f 62 61 | DialogP|tr globa|
|00002080| 6c 0d 09 09 4d 4f 56 45 | 2e 4c 20 09 64 30 2c 28 |l...MOVE|.L .d0,(|
|00002090| 61 30 29 09 3b 20 73 74 | 6f 72 65 20 69 74 0d 09 |a0).; st|ore it..|
|000020a0| 09 52 54 53 0d 09 09 45 | 4e 44 50 0d 3b 20 44 69 |.RTS...E|NDP.; Di|
|000020b0| 61 6c 6f 67 50 74 72 20 | 47 65 74 44 69 61 6c 6f |alogPtr |GetDialo|
|000020c0| 67 28 29 3b 0d 47 65 74 | 44 69 61 6c 6f 67 09 50 |g();.Get|Dialog.P|
|000020d0| 52 4f 43 09 45 58 50 4f | 52 54 0d 09 09 49 4d 50 |ROC.EXPO|RT...IMP|
|000020e0| 4f 52 54 09 4d 79 41 35 | 52 65 66 0d 09 09 09 0d |ORT.MyA5|Ref.....|
|000020f0| 20 09 09 4c 45 41 20 09 | 4d 79 41 35 72 65 66 2c | ..LEA .|MyA5ref,|
|00002100| 61 30 0d 20 09 09 4d 4f | 56 45 2e 4c 20 09 28 61 |a0. ..MO|VE.L .(a|
|00002110| 30 29 2c 64 30 09 3b 20 | 72 65 74 75 72 6e 20 6f |0),d0.; |return o|
|00002120| 75 72 20 44 69 61 6c 6f | 67 50 74 72 20 09 09 09 |ur Dialo|gPtr ...|
|00002130| 09 09 3b 20 67 6c 6f 62 | 61 6c 0d 09 09 52 54 53 |..; glob|al...RTS|
|00002140| 0d 09 09 45 4e 44 50 0d | 09 09 09 0d 3b 20 76 6f |...ENDP.|....; vo|
|00002150| 69 64 20 44 6f 53 6c 65 | 65 70 28 29 0d 3b 20 50 |id DoSle|ep().; P|
|00002160| 75 73 68 65 73 20 6f 75 | 72 20 41 35 20 61 6e 64 |ushes ou|r A5 and|
|00002170| 20 64 69 61 6c 6f 67 50 | 74 72 20 6f 6e 74 6f 20 | dialogP|tr onto |
|00002180| 74 68 65 20 73 74 61 63 | 6b 2c 20 74 68 65 6e 20 |the stac|k, then |
|00002190| 63 61 6c 6c 73 20 6f 75 | 72 0d 3b 20 73 6c 65 65 |calls ou|r.; slee|
|000021a0| 70 20 72 6f 75 74 69 6e | 65 2e 0d 44 6f 53 6c 65 |p routin|e..DoSle|
|000021b0| 65 70 09 50 52 4f 43 09 | 45 58 50 4f 52 54 0d 09 |ep.PROC.|EXPORT..|
|000021c0| 09 49 4d 50 4f 52 54 20 | 09 4d 79 41 35 52 65 66 |.IMPORT |.MyA5Ref|
|000021d0| 2c 73 6c 65 65 70 64 6d | 64 0d 09 09 4c 45 41 20 |,sleepdm|d...LEA |
|000021e0| 09 4d 79 41 35 72 65 66 | 2c 41 30 0d 09 09 4d 4f |.MyA5ref|,A0...MO|
|000021f0| 56 45 2e 4c 20 09 28 61 | 30 29 2c 2d 28 73 70 29 |VE.L .(a|0),-(sp)|
|00002200| 09 3b 20 70 75 73 68 20 | 6f 75 72 20 73 61 76 65 |.; push |our save|
|00002210| 64 20 44 69 61 6c 6f 67 | 50 74 72 0d 09 09 4d 4f |d Dialog|Ptr...MO|
|00002220| 56 45 2e 4c 09 24 34 28 | 61 30 29 2c 20 2d 28 73 |VE.L.$4(|a0), -(s|
|00002230| 70 29 09 3b 20 70 75 73 | 68 20 6f 75 72 20 73 61 |p).; pus|h our sa|
|00002240| 76 65 64 20 64 69 74 6c | 48 61 6e 64 6c 65 0d 09 |ved ditl|Handle..|
|00002250| 09 4d 4f 56 45 2e 4c 20 | 09 24 38 28 61 30 29 2c |.MOVE.L |.$8(a0),|
|00002260| 2d 28 73 70 29 09 3b 20 | 70 75 73 68 20 6f 75 72 |-(sp).; |push our|
|00002270| 20 73 61 76 65 64 20 41 | 35 0d 09 09 4a 53 52 20 | saved A|5...JSR |
|00002280| 09 73 6c 65 65 70 64 6d | 64 09 3b 20 63 61 6c 6c |.sleepdm|d.; call|
|00002290| 20 6f 75 72 20 43 20 72 | 6f 75 74 69 6e 65 0d 09 | our C r|outine..|
|000022a0| 09 41 44 44 20 09 23 24 | 43 2c 73 70 20 09 3b 20 |.ADD .#$|C,sp .; |
|000022b0| 43 20 72 6f 75 74 69 6e | 65 73 20 63 6c 65 61 72 |C routin|es clear|
|000022c0| 20 74 68 65 20 73 74 61 | 63 6b 0d 09 09 09 09 3b | the sta|ck.....;|
|000022d0| 20 6f 6e 20 65 6e 74 72 | 79 2e 20 0d 09 09 52 54 | on entr|y. ...RT|
|000022e0| 53 09 09 3b 20 50 61 73 | 63 61 6c 20 72 6f 75 74 |S..; Pas|cal rout|
|000022f0| 69 6e 65 73 20 63 6c 65 | 61 72 20 74 68 65 0d 09 |ines cle|ar the..|
|00002300| 09 45 4e 44 50 09 09 3b | 20 73 74 61 63 6b 20 6f |.ENDP..;| stack o|
|00002310| 6e 20 65 78 69 74 2e 0d | 3b 4f 75 72 20 73 6c 65 |n exit..|;Our sle|
|00002320| 65 70 51 72 6f 75 74 69 | 6e 65 20 28 66 72 6f 6d |epQrouti|ne (from|
|00002330| 20 74 68 65 20 50 6f 77 | 65 72 20 4d 61 6e 61 67 | the Pow|er Manag|
|00002340| 65 72 20 43 68 61 70 74 | 65 72 20 6f 66 20 49 6e |er Chapt|er of In|
|00002350| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 56 |side Mac|intosh V|
|00002360| 49 29 20 3b 20 6c 6f 6f | 6b 73 20 61 73 20 66 6f |I) ; loo|ks as fo|
|00002370| 6c 6c 6f 77 73 3a 0d 73 | 6c 65 65 70 51 72 6f 75 |llows:.s|leepQrou|
|00002380| 74 69 6e 65 09 50 52 4f | 43 09 45 58 50 4f 52 54 |tine.PRO|C.EXPORT|
|00002390| 0d 53 74 61 63 6b 46 72 | 61 6d 65 09 52 45 43 4f |.StackFr|ame.RECO|
|000023a0| 52 44 09 7b 41 36 4c 69 | 6e 6b 7d 2c 44 45 43 52 |RD.{A6Li|nk},DECR|
|000023b0| 0d 50 61 72 61 6d 42 65 | 67 69 6e 09 45 51 55 09 |.ParamBe|gin.EQU.|
|000023c0| 09 2a 0d 50 61 72 61 6d | 53 69 7a 65 09 45 51 55 |.*.Param|Size.EQU|
|000023d0| 09 09 50 61 72 61 6d 42 | 65 67 69 6e 2d 2a 0d 52 |..ParamB|egin-*.R|
|000023e0| 65 74 41 64 64 72 09 44 | 53 2e 4c 09 09 31 0d 41 |etAddr.D|S.L..1.A|
|000023f0| 36 4c 69 6e 6b 09 44 53 | 2e 4c 09 09 31 0d 4c 6f |6Link.DS|.L..1.Lo|
|00002400| 63 61 6c 53 69 7a 65 09 | 45 51 55 09 09 2a 0d 09 |calSize.|EQU..*..|
|00002410| 45 4e 44 52 0d 09 49 4d | 50 4f 52 54 20 09 73 6c |ENDR..IM|PORT .sl|
|00002420| 65 65 70 64 6d 64 2c 57 | 41 4b 45 55 50 44 4d 44 |eepdmd,W|AKEUPDMD|
|00002430| 0d 09 49 4d 50 4f 52 54 | 20 09 52 45 56 4f 4b 45 |..IMPORT| .REVOKE|
|00002440| 52 51 53 54 0d 09 49 4d | 50 4f 52 54 20 09 44 6f |RQST..IM|PORT .Do|
|00002450| 53 6c 65 65 70 0d 09 57 | 49 54 48 09 53 74 61 63 |Sleep..W|ITH.Stac|
|00002460| 6b 46 72 61 6d 65 0d 09 | 4c 49 4e 4b 09 41 36 2c |kFrame..|LINK.A6,|
|00002470| 23 4c 6f 63 61 6c 53 69 | 7a 65 0d 09 43 4d 50 49 |#LocalSi|ze..CMPI|
|00002480| 2e 4c 09 23 31 2c 44 30 | 09 3b 20 49 73 20 69 74 |.L.#1,D0|.; Is it|
|00002490| 20 61 20 73 6c 65 65 70 | 20 72 65 71 75 65 73 74 | a sleep| request|
|000024a0| 3f 0d 09 42 4e 45 2e 53 | 09 40 31 0d 09 4d 4f 56 |?..BNE.S|.@1..MOV|
|000024b0| 45 2e 4c 20 09 23 30 2c | 44 30 09 3b 20 57 65 20 |E.L .#0,|D0.; We |
|000024c0| 63 6c 65 61 72 20 74 68 | 65 20 72 65 67 69 73 74 |clear th|e regist|
|000024d0| 65 72 20 74 6f 20 0d 09 | 09 09 3b 20 7a 65 72 6f |er to ..|..; zero|
|000024e0| 20 74 6f 20 61 6c 6c 6f | 77 20 66 6f 72 20 73 6c | to allo|w for sl|
|000024f0| 65 65 70 2e 0d 09 42 52 | 41 2e 53 09 45 78 69 74 |eep...BR|A.S.Exit|
|00002500| 0d 40 31 09 43 4d 50 49 | 2e 4c 09 23 32 2c 44 30 |.@1.CMPI|.L.#2,D0|
|00002510| 09 0d 09 42 4e 45 2e 53 | 09 40 32 0d 09 42 53 52 |...BNE.S|.@2..BSR|
|00002520| 09 44 6f 53 6c 65 65 70 | 09 3b 20 48 65 72 65 20 |.DoSleep|.; Here |
|00002530| 79 6f 75 20 61 72 65 20 | 73 75 70 70 6f 73 65 64 |you are |supposed|
|00002540| 20 74 6f 20 64 6f 20 0d | 09 09 09 3b 20 77 68 61 | to do .|...; wha|
|00002550| 74 65 76 65 72 20 69 73 | 20 6e 65 65 64 65 64 0d |tever is| needed.|
|00002560| 09 09 09 3b 20 74 6f 20 | 70 72 65 70 61 72 65 20 |...; to |prepare |
|00002570| 66 6f 72 20 73 6c 65 65 | 70 2e 20 69 65 3a 20 61 |for slee|p. ie: a|
|00002580| 6c 65 72 74 20 75 73 65 | 72 2e 0d 09 42 52 41 2e |lert use|r...BRA.|
|00002590| 53 20 09 45 78 69 74 0d | 40 32 09 43 4d 50 49 2e |S .Exit.|@2.CMPI.|
|000025a0| 4c 09 23 33 2c 44 30 09 | 3b 20 41 72 65 20 77 65 |L.#3,D0.|; Are we|
|000025b0| 20 62 65 69 6e 67 20 74 | 6f 6c 64 20 74 6f 20 77 | being t|old to w|
|000025c0| 61 6b 65 20 75 70 3f 0d | 09 42 4e 45 2e 53 09 40 |ake up?.|.BNE.S.@|
|000025d0| 33 0d 09 4a 53 52 20 09 | 57 41 4b 45 55 50 44 4d |3..JSR .|WAKEUPDM|
|000025e0| 44 09 3b 20 48 65 72 65 | 20 79 6f 75 20 61 72 65 |D.; Here| you are|
|000025f0| 20 74 6f 20 64 6f 20 77 | 68 61 74 65 76 65 72 20 | to do w|hatever |
|00002600| 69 73 20 0d 09 09 09 3b | 20 6e 65 65 64 65 64 20 |is ....;| needed |
|00002610| 74 6f 20 70 72 65 70 61 | 72 65 20 66 6f 72 20 74 |to prepa|re for t|
|00002620| 68 65 20 6f 70 65 72 61 | 74 69 6e 67 0d 09 09 09 |he opera|ting....|
|00002630| 3b 20 73 74 61 74 65 20 | 61 6e 64 20 72 65 74 75 |; state |and retu|
|00002640| 72 6e 20 63 6f 6e 74 72 | 6f 6c 20 74 6f 20 74 68 |rn contr|ol to th|
|00002650| 65 20 0d 09 09 09 3b 20 | 50 6f 77 65 72 20 4d 61 |e ....; |Power Ma|
|00002660| 6e 61 67 65 72 2e 0d 09 | 42 52 41 2e 53 09 45 78 |nager...|BRA.S.Ex|
|00002670| 69 74 0d 40 33 09 43 4d | 50 49 2e 4c 09 23 34 2c |it.@3.CM|PI.L.#4,|
|00002680| 44 30 09 3b 20 49 73 20 | 61 20 6e 65 74 77 6f 72 |D0.; Is |a networ|
|00002690| 6b 20 73 6c 65 65 70 20 | 72 65 71 75 65 73 74 20 |k sleep |request |
|000026a0| 0d 09 09 09 3b 20 62 65 | 69 6e 67 20 63 61 6e 63 |....; be|ing canc|
|000026b0| 65 6c 6c 65 64 3f 0d 09 | 42 4e 45 2e 53 09 45 78 |elled?..|BNE.S.Ex|
|000026c0| 69 74 0d 09 4a 53 52 09 | 52 45 56 4f 4b 45 52 51 |it..JSR.|REVOKERQ|
|000026d0| 53 54 09 0d 45 78 69 74 | 09 55 4e 4c 4b 20 09 41 |ST..Exit|.UNLK .A|
|000026e0| 36 0d 09 4d 4f 56 45 41 | 2e 4c 20 09 28 53 50 29 |6..MOVEA|.L .(SP)|
|000026f0| 2b 2c 20 41 30 0d 09 41 | 44 44 41 2e 4c 20 09 23 |+, A0..A|DDA.L .#|
|00002700| 50 61 72 61 6d 53 69 7a | 65 2c 20 53 50 0d 09 4a |ParamSiz|e, SP..J|
|00002710| 4d 50 09 28 41 30 29 0d | 09 45 4e 44 0d 4f 75 72 |MP.(A0).|.END.Our|
|00002720| 20 73 6c 65 65 70 20 73 | 75 62 72 6f 75 74 69 6e | sleep s|ubroutin|
|00002730| 65 20 77 69 6c 6c 20 74 | 68 65 72 65 66 6f 72 65 |e will t|herefore|
|00002740| 20 6c 6f 6f 6b 20 61 73 | 20 66 6f 6c 6c 6f 77 73 | look as| follows|
|00002750| 3a 0d 76 6f 69 64 20 53 | 4c 45 45 50 44 4d 44 28 |:.void S|LEEPDMD(|
|00002760| 6c 6f 6e 67 20 74 68 65 | 41 35 2c 20 48 61 6e 64 |long the|A5, Hand|
|00002770| 6c 65 20 6d 79 44 69 74 | 6c 2c 20 44 69 61 6c 6f |le myDit|l, Dialo|
|00002780| 67 50 74 72 20 6d 79 44 | 69 61 6c 6f 67 29 20 7b |gPtr myD|ialog) {|
|00002790| 0d 09 0d 09 73 68 6f 72 | 74 09 09 69 74 65 6d 20 |....shor|t..item |
|000027a0| 3d 20 30 3b 0d 09 6c 6f | 6e 67 09 09 6f 6c 64 41 |= 0;..lo|ng..oldA|
|000027b0| 35 3b 0d 09 52 65 63 74 | 09 09 77 52 65 63 74 3b |5;..Rect|..wRect;|
|000027c0| 0d 09 0d 09 6f 6c 64 41 | 35 20 3d 20 53 65 74 43 |....oldA|5 = SetC|
|000027d0| 75 72 72 65 6e 74 41 35 | 28 29 3b 0d 09 53 65 74 |urrentA5|();..Set|
|000027e0| 41 35 28 74 68 65 41 35 | 29 3b 0d 09 2f 2f 4e 65 |A5(theA5|);..//Ne|
|000027f0| 65 64 20 74 6f 20 62 75 | 69 6c 64 20 61 20 64 69 |ed to bu|ild a di|
|00002800| 61 6c 6f 67 20 62 6f 78 | 20 66 72 6f 6d 20 73 63 |alog box| from sc|
|00002810| 72 61 74 63 68 20 75 73 | 69 6e 67 20 6f 75 72 20 |ratch us|ing our |
|00002820| 70 72 65 76 69 6f 75 73 | 6c 79 20 73 61 76 65 64 |previous|ly saved|
|00002830| 20 44 49 54 4c 2e 0d 09 | 69 66 20 28 6d 79 44 69 | DITL...|if (myDi|
|00002840| 61 6c 6f 67 20 3d 3d 20 | 6e 69 6c 29 20 7b 0d 09 |alog == |nil) {..|
|00002850| 20 20 20 20 20 20 20 53 | 65 74 52 65 63 74 28 26 | S|etRect(&|
|00002860| 77 52 65 63 74 2c 20 35 | 30 2c 20 35 30 2c 20 34 |wRect, 5|0, 50, 4|
|00002870| 30 30 2c 20 32 30 30 29 | 3b 0d 09 20 20 20 20 20 |00, 200)|;.. |
|00002880| 20 20 6d 79 44 69 61 6c | 6f 67 20 3d 20 4e 65 77 | myDial|og = New|
|00002890| 44 69 61 6c 6f 67 28 6e | 69 6c 2c 20 26 77 52 65 |Dialog(n|il, &wRe|
|000028a0| 63 74 2c 20 22 22 2c 20 | 66 61 6c 73 65 2c 20 64 |ct, "", |false, d|
|000028b0| 42 6f 78 50 72 6f 63 2c | 0d 09 20 20 20 20 20 20 |BoxProc,|.. |
|000028c0| 20 28 57 69 6e 64 6f 77 | 50 74 72 29 20 2d 31 4c | (Window|Ptr) -1L|
|000028d0| 2c 20 66 61 6c 73 65 2c | 20 6e 69 6c 2c 20 6d 79 |, false,| nil, my|
|000028e0| 44 69 74 6c 29 3b 0d 09 | 20 20 20 20 20 20 20 53 |Ditl);..| S|
|000028f0| 54 4f 52 45 44 49 41 4c | 4f 47 28 6d 79 44 69 61 |TOREDIAL|OG(myDia|
|00002900| 6c 6f 67 29 3b 0d 09 7d | 0d 09 53 68 6f 77 57 69 |log);..}|..ShowWi|
|00002910| 6e 64 6f 77 28 6d 79 44 | 69 61 6c 6f 67 29 3b 0d |ndow(myD|ialog);.|
|00002920| 09 53 65 6c 65 63 74 57 | 69 6e 64 6f 77 28 6d 79 |.SelectW|indow(my|
|00002930| 44 69 61 6c 6f 67 29 3b | 0d 09 53 65 74 50 6f 72 |Dialog);|..SetPor|
|00002940| 74 28 6d 79 44 69 61 6c | 6f 67 29 3b 0d 09 77 68 |t(myDial|og);..wh|
|00002950| 69 6c 65 20 28 69 74 65 | 6d 20 21 3d 20 31 29 20 |ile (ite|m != 1) |
|00002960| 7b 0d 09 09 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 28 |{...Moda|lDialog(|
|00002970| 4e 55 4c 4c 2c 20 26 69 | 74 65 6d 29 3b 09 09 0d |NULL, &i|tem);...|
|00002980| 09 7d 0d 09 48 69 64 65 | 57 69 6e 64 6f 77 28 6d |.}..Hide|Window(m|
|00002990| 79 44 69 61 6c 6f 67 29 | 3b 0d 09 53 65 74 41 35 |yDialog)|;..SetA5|
|000029a0| 28 6f 6c 64 41 35 29 3b | 0d 09 0d 7d 2f 2a 73 6c |(oldA5);|...}/*sl|
|000029b0| 65 65 70 64 6d 64 2a 2f | 0d 43 6f 6e 63 6c 75 73 |eepdmd*/|.Conclus|
|000029c0| 69 6f 6e 0d 54 68 69 73 | 20 6e 6f 74 65 20 67 6f |ion.This| note go|
|000029d0| 65 73 20 6f 76 65 72 20 | 61 20 66 65 77 20 73 70 |es over |a few sp|
|000029e0| 65 63 69 61 6c 20 74 72 | 69 63 6b 73 20 74 68 61 |ecial tr|icks tha|
|000029f0| 74 20 74 68 65 20 50 6f | 77 65 72 20 4d 61 6e 61 |t the Po|wer Mana|
|00002a00| 67 65 72 20 63 68 61 70 | 74 65 72 20 69 6e 20 49 |ger chap|ter in I|
|00002a10| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00002a20| 56 6f 6c 75 6d 65 20 56 | 49 20 66 61 69 6c 65 64 |Volume V|I failed|
|00002a30| 20 74 6f 20 63 6f 76 65 | 72 2e 20 54 68 65 20 50 | to cove|r. The P|
|00002a40| 6f 77 65 72 20 4d 61 6e | 61 67 65 72 20 63 68 61 |ower Man|ager cha|
|00002a50| 70 74 65 72 20 73 74 61 | 74 65 73 20 74 68 61 74 |pter sta|tes that|
|00002a60| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00002a70| 63 6f 75 6c 64 20 62 65 | 20 77 72 69 74 74 65 6e |could be| written|
|00002a80| 20 74 6f 20 61 64 64 20 | 61 20 72 6f 75 74 69 6e | to add |a routin|
|00002a90| 65 20 69 6e 20 74 68 65 | 20 73 6c 65 65 70 20 71 |e in the| sleep q|
|00002aa0| 75 65 75 65 20 74 6f 20 | 70 75 74 20 75 70 20 61 |ueue to |put up a|
|00002ab0| 20 64 69 61 6c 6f 67 20 | 6f 72 20 61 6c 65 72 74 | dialog |or alert|
|00002ac0| 20 62 6f 78 20 62 65 66 | 6f 72 65 20 74 68 65 20 | box bef|ore the |
|00002ad0| 73 79 73 74 65 6d 20 67 | 6f 65 73 20 74 6f 20 73 |system g|oes to s|
|00002ae0| 6c 65 65 70 2e 20 49 74 | 20 64 6f 65 73 20 6e 6f |leep. It| does no|
|00002af0| 74 20 64 69 73 63 75 73 | 73 20 61 6e 79 20 6f 66 |t discus|s any of|
|00002b00| 20 74 68 65 20 62 61 72 | 72 69 65 72 73 20 74 68 | the bar|riers th|
|00002b10| 61 74 20 6f 6e 65 20 6d | 61 79 20 66 61 63 65 20 |at one m|ay face |
|00002b20| 77 68 65 6e 20 61 74 74 | 65 6d 70 74 69 6e 67 20 |when att|empting |
|00002b30| 74 6f 20 64 6f 20 74 68 | 69 73 2e 20 54 68 65 20 |to do th|is. The |
|00002b40| 61 62 6f 76 65 20 74 72 | 69 63 6b 73 20 77 69 6c |above tr|icks wil|
|00002b50| 6c 20 61 6c 6c 6f 77 20 | 79 6f 75 20 74 6f 20 75 |l allow |you to u|
|00002b60| 73 65 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |se your |applicat|
|00002b70| 69 6f 6e 20 74 6f 20 64 | 69 73 70 6c 61 79 20 61 |ion to d|isplay a|
|00002b80| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 62 65 66 6f | dialog |box befo|
|00002b90| 72 65 20 74 68 65 20 73 | 79 73 74 65 6d 20 67 6f |re the s|ystem go|
|00002ba0| 65 73 20 74 6f 20 73 6c | 65 65 70 2e 20 0d 46 75 |es to sl|eep. .Fu|
|00002bb0| 72 74 68 65 72 20 52 65 | 66 65 72 65 6e 63 65 3a |rther Re|ference:|
|00002bc0| 0d a5 20 20 20 20 20 54 | 65 63 68 6e 69 63 61 6c |.. T|echnical|
|00002bd0| 20 4e 6f 74 65 20 50 54 | 20 33 35 20 2d 20 53 74 | Note PT| 35 - St|
|00002be0| 61 6e 64 2d 41 6c 6f 6e | 65 20 43 6f 64 65 2c 20 |and-Alon|e Code, |
|00002bf0| 61 64 20 6e 61 75 73 65 | 75 6d 0d a5 20 20 20 20 |ad nause|um.. |
|00002c00| 20 64 65 76 65 6c 6f 70 | 20 49 73 73 75 65 20 23 | develop| Issue #|
|00002c10| 31 32 3a 20 41 6e 6f 74 | 68 65 72 20 54 61 6b 65 |12: Anot|her Take|
|00002c20| 20 6f 6e 20 47 6c 6f 62 | 61 6c 73 20 69 6e 20 53 | on Glob|als in S|
|00002c30| 74 61 6e 64 61 6c 6f 6e | 65 20 43 6f 64 65 0d a5 |tandalon|e Code..|
|00002c40| 20 20 20 20 20 49 6e 73 | 69 64 65 20 4d 61 63 69 | Ins|ide Maci|
|00002c50| 6e 74 6f 73 68 2c 20 56 | 6f 6c 75 6d 65 20 56 49 |ntosh, V|olume VI|
|00002c60| 2c 20 50 6f 77 65 72 20 | 4d 61 6e 61 67 65 72 20 |, Power |Manager |
|00002c70| 63 68 61 70 74 65 72 0d | a5 20 20 20 20 20 49 6e |chapter.|. In|
|00002c80| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 2c 20 |side Mac|intosh, |
|00002c90| 56 6f 6c 75 6d 65 20 49 | 49 2c 20 53 65 67 6d 65 |Volume I|I, Segme|
|00002ca0| 6e 74 20 4c 6f 61 64 65 | 72 0d a5 20 20 20 20 20 |nt Loade|r.. |
|00002cb0| d2 54 65 6c 6c 20 6d 65 | 20 69 66 20 79 6f 75 20 |.Tell me| if you |
|00002cc0| 61 72 65 20 73 6c 65 65 | 70 79 d3 20 63 6f 64 65 |are slee|py. code|
|00002cd0| 20 73 61 6d 70 6c 65 20 | 61 76 61 69 6c 61 62 6c | sample |availabl|
|00002ce0| 65 20 6f 6e 20 44 65 76 | 65 6c 6f 70 65 72 20 43 |e on Dev|eloper C|
|00002cf0| 44 20 53 65 72 69 65 73 | 0d 09 53 70 65 63 69 61 |D Series|..Specia|
|00002d00| 6c 20 54 68 61 6e 6b 73 | 20 74 6f 20 4a 6f 65 20 |l Thanks| to Joe |
|00002d10| 5a 75 66 66 6f 6c 65 74 | 74 6f 20 61 6e 64 20 43 |Zuffolet|to and C|
|00002d20| 2e 20 4b 2e 20 48 61 75 | 6e 20 68 65 6c 70 20 66 |. K. Hau|n help f|
|00002d30| 6f 72 20 74 68 65 69 72 | 20 77 69 74 68 20 74 68 |or their| with th|
|00002d40| 69 73 20 54 65 63 68 6e | 69 63 61 6c 20 09 4e 6f |is Techn|ical .No|
|00002d50| 74 65 2e 0d 13 b4 00 00 | 00 00 03 48 02 52 00 11 |te......|...H.R..|
|00002d60| 02 ff 0c 00 ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 02 52 00 00 03 48 00 00 | 00 00 00 00 00 a0 00 82 |.R...H..|........|
|00002d80| 00 1e 00 01 00 0a 00 2f | 00 5a 00 81 02 23 00 07 |......./|.Z...#..|
|00002d90| 00 00 00 00 00 08 00 0a | 00 09 30 49 88 3a b5 9c |........|..0I.:..|
|00002da0| f0 39 00 22 00 7b 02 1a | 00 00 00 09 ff ff ff ff |.9.".{..|........|
|00002db0| ff ff ff ff 00 23 00 00 | 00 a0 00 c4 00 a1 00 64 |.....#..|.......d|
|00002dc0| 00 0a 4f 4e 4c 4e 00 66 | 00 00 01 fe 00 a0 00 8c |..ONLN.f|........|
|00002dd0| 00 a1 00 64 00 31 64 72 | 77 32 00 02 01 c9 00 2d |...d.1dr|w2.....-|
|00002de0| 01 e1 01 5f 00 00 80 00 | 00 00 00 00 00 00 00 00 |..._....|........|
|00002df0| 00 00 00 00 00 00 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|00002e00| 00 00 01 8f 00 00 00 00 | 00 a1 00 96 00 0c 01 00 |........|........|
|00002e10| 00 00 02 78 00 00 00 00 | 00 00 00 a1 00 64 00 10 |...x....|.....d..|
|00002e20| 64 72 77 32 00 3a 00 05 | 00 00 00 00 00 01 00 00 |drw2.:..|........|
|00002e30| 00 a1 00 64 00 0e 64 72 | 77 32 00 3a 00 02 00 24 |...d..dr|w2.:...$|
|00002e40| 00 00 00 00 00 a1 00 64 | 00 34 64 72 77 32 00 3a |.......d|.4drw2.:|
|00002e50| 00 01 00 03 01 00 00 18 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 01 00 01 00 01 | 00 01 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 a1 |........|........|
|00002e80| 00 9a 00 08 ff fa 00 00 | 00 97 40 00 00 a0 00 98 |........|..@.....|
|00002e90| 00 2c 00 08 00 14 05 54 | 69 6d 65 73 00 03 00 14 |.,.....T|imes....|
|00002ea0| 00 04 01 00 00 0d 00 18 | 00 2e 00 04 00 00 01 00 |........|........|
|00002eb0| 00 10 00 52 01 c9 00 52 | 01 c9 00 2b 5d 42 13 4e |...R...R|...+]B.N|
|00002ec0| 65 77 20 54 65 63 68 6e | 69 63 61 6c 20 4e 6f 74 |ew Techn|ical Not|
|00002ed0| 65 73 00 a0 00 99 00 a1 | 00 64 00 08 64 72 77 32 |es......|.d..drw2|
|00002ee0| 00 3a 00 04 00 a1 14 e3 | 00 02 00 01 00 a0 00 97 |.:......|........|
|00002ef0| 00 a1 00 64 00 31 64 72 | 77 32 00 02 02 06 01 65 |...d.1dr|w2.....e|
|00002f00| 02 19 01 f4 00 00 80 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|00002f20| 00 00 01 50 00 00 00 00 | 00 a1 00 96 00 0c 01 00 |...P....|........|
|00002f30| 00 00 02 78 00 00 00 00 | 00 00 00 a1 00 64 00 10 |...x....|.....d..|
|00002f40| 64 72 77 32 00 3a 00 05 | 00 00 00 00 00 01 00 00 |drw2.:..|........|
|00002f50| 00 a1 00 64 00 0e 64 72 | 77 32 00 3a 00 02 00 24 |...d..dr|w2.:...$|
|00002f60| 00 00 00 00 00 a1 00 64 | 00 34 64 72 77 32 00 3a |.......d|.4drw2.:|
|00002f70| 00 01 00 03 00 00 00 12 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 01 00 01 00 01 | 00 01 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 a1 |........|........|
|00002fa0| 00 9a 00 08 ff fb 80 00 | 00 45 c0 00 00 a0 00 98 |........|.E......|
|00002fb0| 00 04 00 00 00 0d 00 12 | 00 28 00 7b 01 95 11 44 |........|.(.{...D|
|00002fc0| 65 76 65 6c 6f 70 65 72 | 20 53 75 70 70 6f 72 74 |eveloper| Support|
|00002fd0| 00 a0 00 99 00 a1 00 64 | 00 08 64 72 77 32 00 3a |.......d|..drw2.:|
|00002fe0| 00 04 00 a1 14 e3 00 02 | 00 01 00 a0 00 97 00 a1 |........|........|
|00002ff0| 00 64 00 60 64 72 77 32 | 00 03 02 00 00 2d 02 00 |.d.`drw2|.....-..|
|00003000| 01 ef 00 00 00 00 00 00 | 00 00 02 02 00 00 00 00 |........|........|
|00003010| 00 00 00 00 00 00 ff ff | ff ff ff ff 00 01 00 01 |........|........|
|00003020| 08 4b 00 00 00 00 02 00 | 01 ef 02 00 00 2d 00 00 |.K......|.....-..|
|00003030| 00 00 00 00 00 00 00 01 | 00 14 00 0c 00 03 00 02 |........|........|
|00003040| 00 00 00 5a 00 01 00 00 | 00 02 00 00 00 03 00 0c |...Z....|........|
|00003050| 00 00 00 00 00 07 00 02 | 00 02 00 08 00 08 00 20 |........|....... |
|00003060| 00 66 02 1c 00 66 00 5a | 00 a1 00 64 00 31 64 72 |.f...f.Z|...d.1dr|
|00003070| 77 32 00 02 01 ca 01 c0 | 01 fa 01 e9 00 00 00 00 |w2......|........|
|00003080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003090| ff ff ff ff ff ff 00 01 | 00 00 01 4b 00 00 00 00 |........|...K....|
|000030a0| 00 a1 00 96 00 0c 01 00 | 00 00 02 78 00 00 00 00 |........|...x....|
|000030b0| 00 00 00 a1 00 64 00 10 | 64 72 77 32 00 3a 00 05 |.....d..|drw2.:..|
|000030c0| 00 00 00 00 00 01 00 00 | 00 a1 00 64 00 0e 64 72 |........|...d..dr|
|000030d0| 77 32 00 3a 00 02 00 24 | 00 00 00 00 00 a1 00 64 |w2.:...$|.......d|
|000030e0| 00 34 64 72 77 32 00 3a | 00 01 00 03 00 00 00 30 |.4drw2.:|.......0|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 01 00 01 00 01 |........|........|
|00003100| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 a1 | 00 9a 00 08 ff f4 00 00 |........|........|
|00003120| 00 13 80 00 00 a0 00 98 | 00 0d 00 30 00 28 00 55 |........|...0.(.U|
|00003130| 01 ef 01 f0 00 a0 00 99 | 00 a1 00 64 00 08 64 72 |........|...d..dr|
|00003140| 77 32 00 3a 00 04 00 a1 | 14 e3 00 02 00 01 00 a0 |w2.:....|........|
|00003150| 00 97 00 a1 00 64 00 31 | 64 72 77 32 00 02 01 ef |.....d.1|drw2....|
|00003160| 01 e6 01 fa 01 f0 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 ff ff ff ff ff ff |........|........|
|00003180| 00 01 00 00 01 00 00 00 | 00 00 00 a1 00 96 00 0c |........|........|
|00003190| 01 00 00 00 02 78 00 00 | 00 00 00 00 00 a1 00 64 |.....x..|.......d|
|000031a0| 00 10 64 72 77 32 00 3a | 00 05 00 00 00 00 00 01 |..drw2.:|........|
|000031b0| 00 00 00 a1 00 64 00 0e | 64 72 77 32 00 3a 00 02 |.....d..|drw2.:..|
|000031c0| 00 24 00 00 00 00 00 a1 | 00 64 00 34 64 72 77 32 |.$......|.d.4drw2|
|000031d0| 00 3a 00 01 00 03 00 00 | 00 09 00 00 00 00 00 00 |.:......|........|
|000031e0| 00 00 00 00 00 01 00 01 | 00 01 00 01 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 00 a1 00 9a 00 08 ff fd | 80 00 00 04 00 00 00 a0 |........|........|
|00003210| 00 98 00 0d 00 09 00 2b | 26 09 01 a8 00 a0 00 99 |.......+|&.......|
|00003220| 00 a1 00 64 00 08 64 72 | 77 32 00 3a 00 04 00 a1 |...d..dr|w2.:....|
|00003230| 14 e3 00 02 00 01 00 a0 | 00 97 00 a1 00 64 00 31 |........|.....d.1|
|00003240| 64 72 77 32 00 02 01 e5 | 00 2d 01 f8 00 79 00 00 |drw2....|.-...y..|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 ff ff ff ff ff ff | 00 01 00 01 01 00 00 00 |........|........|
|00003270| 01 00 00 a1 00 96 00 0c | 01 00 00 00 02 78 00 00 |........|.....x..|
|00003280| 00 00 00 00 00 a1 00 64 | 00 10 64 72 77 32 00 3a |.......d|..drw2.:|
|00003290| 00 05 00 00 00 00 00 01 | 00 00 00 a1 00 64 00 0e |........|.....d..|
|000032a0| 64 72 77 32 00 3a 00 02 | 00 24 00 00 00 00 00 a1 |drw2.:..|.$......|
|000032b0| 00 64 00 34 64 72 77 32 | 00 3a 00 01 00 03 00 00 |.d.4drw2|.:......|
|000032c0| 00 12 00 00 00 00 00 00 | 00 00 00 00 00 01 00 01 |........|........|
|000032d0| 00 01 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 a1 00 9a 00 08 ff fb |........|........|
|000032f0| 80 00 00 25 00 00 00 a0 | 00 98 00 0d 00 12 00 28 |...%....|.......(|
|00003300| 00 5a 00 5c 09 4d 61 63 | 69 6e 74 6f 73 68 00 a0 |.Z.\.Mac|intosh..|
|00003310| 00 99 00 a1 00 64 00 08 | 64 72 77 32 00 3a 00 04 |.....d..|drw2.:..|
|00003320| 00 a1 14 e3 00 02 00 01 | 00 a0 00 97 00 a0 00 8d |........|........|
|00003330| 00 a1 00 64 00 06 64 72 | 77 32 00 44 00 a0 00 83 |...d..dr|w2.D....|
|00003340| 00 01 00 0a 00 00 00 00 | 03 48 02 52 00 04 01 00 |........|.H.R....|
|00003350| 00 2e 00 04 00 00 00 00 | 00 10 00 01 00 01 00 01 |........|........|
|00003360| 00 01 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 00 |.....d..|ONLN.d..|
|00003370| 00 8d 00 5a 00 a0 01 43 | 00 28 00 9b 00 5a 19 48 |...Z...C|.(...Z.H|
|00003380| 57 20 33 31 20 2d 20 53 | 6c 65 65 70 20 51 75 65 |W 31 - S|leep Que|
|00003390| 75 65 20 54 61 73 6b 73 | 00 0d 00 0e 00 a1 00 64 |ue Tasks|.......d|
|000033a0| 00 10 4f 4e 4c 4e 00 64 | 00 1a 00 9f 00 5a 00 ae |..ONLN.d|.....Z..|
|000033b0| 00 9a 00 2a 10 08 48 61 | 72 64 77 61 72 65 00 04 |...*..Ha|rdware..|
|000033c0| 00 00 00 0d 00 0c 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000033d0| 00 64 00 24 00 ba 00 5a | 00 c6 00 8f 00 2a 18 0b |.d.$...Z|.....*..|
|000033e0| 57 72 69 74 74 65 6e 20 | 62 79 3a 00 00 a1 00 64 |Written |by:....d|
|000033f0| 00 10 4f 4e 4c 4e 00 64 | 00 30 00 ba 00 a2 00 c6 |..ONLN.d|.0......|
|00003400| 01 09 00 29 48 15 43 6f | 6c 6c 65 65 6e 20 4b 2e |...)H.Co|lleen K.|
|00003410| 20 44 65 6c 67 61 64 69 | 6c 6c 6f 00 00 a1 00 64 | Delgadi|llo....d|
|00003420| 00 10 4f 4e 4c 4e 00 64 | 00 46 00 ba 01 ec 00 c6 |..ONLN.d|.F......|
|00003430| 02 1c 00 28 00 c3 01 ec | 08 4d 61 79 20 31 39 39 |...(....|.May 199|
|00003440| 33 00 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |3.......|...d..ON|
|00003450| 4c 4e 00 64 00 4f 00 d2 | 00 5a 00 de 01 2f 00 28 |LN.d.O..|.Z.../.(|
|00003460| 00 db 00 5a 29 54 68 69 | 73 20 54 65 63 68 6e 69 |...Z)Thi|s Techni|
|00003470| 63 61 6c 20 4e 6f 74 65 | 20 64 65 6d 6f 6e 73 74 |cal Note| demonst|
|00003480| 72 61 74 65 73 20 68 6f | 77 20 6f 6e 65 20 00 06 |rates ho|w one ..|
|00003490| 00 02 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000034a0| 00 78 00 d2 01 2f 00 de | 02 1c 00 29 d5 30 63 61 |.x.../..|...).0ca|
|000034b0| 6e 20 77 72 69 74 65 20 | 61 6e 20 61 70 70 6c 69 |n write |an appli|
|000034c0| 63 61 74 69 6f 6e 20 74 | 6f 20 64 69 73 70 6c 61 |cation t|o displa|
|000034d0| 79 20 61 20 64 69 61 6c | 6f 67 20 62 6f 78 00 06 |y a dial|og box..|
|000034e0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000034f0| 00 a9 00 de 00 5a 00 ea | 01 21 00 28 00 e7 00 5a |.....Z..|.!.(...Z|
|00003500| 2a 62 65 66 6f 72 65 20 | 61 20 70 6f 72 74 61 62 |*before |a portab|
|00003510| 6c 65 20 4d 61 63 69 6e | 74 6f 73 68 20 67 6f 65 |le Macin|tosh goe|
|00003520| 73 20 74 6f 20 73 6c 65 | 65 70 2e 00 00 07 00 01 |s to sle|ep......|
|00003530| 00 01 00 20 00 f6 00 58 | 00 f6 02 1d 00 04 01 00 |... ...X|........|
|00003540| 00 0d 00 0e 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003550| 00 d4 01 0f 00 5a 01 1e | 00 ad 00 2a 34 0c 49 6e |.....Z..|...*4.In|
|00003560| 74 72 6f 64 75 63 74 69 | 6f 6e 00 04 00 00 00 0d |troducti|on......|
|00003570| 00 0c 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00003580| 4c 4e 00 64 00 e1 01 2a | 00 5a 01 36 01 e9 00 2a |LN.d...*|.Z.6...*|
|00003590| 18 4c 4d 61 6e 79 20 44 | 65 76 65 6c 6f 70 65 72 |.LMany D|eveloper|
|000035a0| 73 20 68 61 76 65 20 61 | 73 6b 65 64 20 61 62 6f |s have a|sked abo|
|000035b0| 75 74 20 74 68 65 20 73 | 6c 65 65 70 20 71 75 65 |ut the s|leep que|
|000035c0| 75 65 20 63 6f 64 65 20 | 74 68 61 74 20 69 73 20 |ue code |that is |
|000035d0| 64 6f 63 75 6d 65 6e 74 | 65 64 20 69 6e 20 00 06 |document|ed in ..|
|000035e0| 00 03 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000035f0| 01 2d 01 2a 01 e9 01 36 | 02 1c 00 28 01 33 01 e9 |.-.*...6|...(.3..|
|00003600| 09 74 68 65 20 50 6f 77 | 65 72 00 06 00 01 00 00 |.the Pow|er......|
|00003610| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 37 01 36 |...d..ON|LN.d.7.6|
|00003620| 00 5a 01 42 00 bb 00 28 | 01 3f 00 5a 13 4d 61 6e |.Z.B...(|.?.Z.Man|
|00003630| 61 67 65 72 20 63 68 61 | 70 74 65 72 20 6f 66 20 |ager cha|pter of |
|00003640| 00 04 02 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003650| 01 4a 01 36 00 bb 01 42 | 01 0d 00 29 61 10 49 6e |.J.6...B|...)a.In|
|00003660| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 00 04 |side Mac|intosh..|
|00003670| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 5a |.....d..|ONLN.d.Z|
|00003680| 01 36 01 0d 01 42 01 87 | 00 29 52 16 20 56 6f 6c |.6...B..|.)R. Vol|
|00003690| 75 6d 65 20 56 49 2e 20 | 4d 61 6e 79 20 68 61 76 |ume VI. |Many hav|
|000036a0| 65 20 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |e ......|...d..ON|
|000036b0| 4c 4e 00 64 01 70 01 36 | 01 87 01 42 02 1c 00 29 |LN.d.p.6|...B...)|
|000036c0| 7a 1f 74 72 6f 75 62 6c | 65 73 20 77 72 69 74 69 |z.troubl|es writi|
|000036d0| 6e 67 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ng an ap|plicatio|
|000036e0| 6e 00 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |n.......|...d..ON|
|000036f0| 4c 4e 00 64 01 90 01 42 | 00 5a 01 4e 00 89 00 28 |LN.d...B|.Z.N...(|
|00003700| 01 4b 00 5a 0a 74 68 61 | 74 20 61 64 64 73 20 00 |.K.Z.tha|t adds .|
|00003710| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003720| 00 64 01 9a 01 42 00 89 | 01 4e 02 1c 00 29 2f 51 |.d...B..|.N...)/Q|
|00003730| 61 6e 20 65 6e 74 72 79 | 20 74 6f 20 74 68 65 20 |an entry| to the |
|00003740| 73 6c 65 65 70 20 71 75 | 65 75 65 20 61 6e 64 20 |sleep qu|eue and |
|00003750| 64 69 73 70 6c 61 79 73 | 20 61 20 64 69 61 6c 6f |displays| a dialo|
|00003760| 67 20 6f 72 20 61 6c 65 | 72 74 20 62 6f 78 20 77 |g or ale|rt box w|
|00003770| 68 65 6e 20 74 68 65 69 | 72 20 72 6f 75 74 69 6e |hen thei|r routin|
|00003780| 65 00 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |e.......|...d..ON|
|00003790| 4c 4e 00 64 01 ec 01 4e | 00 5a 01 5a 02 0d 00 28 |LN.d...N|.Z.Z...(|
|000037a0| 01 57 00 5a 5d 72 65 63 | 65 69 76 65 73 20 61 20 |.W.Z]rec|eives a |
|000037b0| 73 6c 65 65 70 20 64 65 | 6d 61 6e 64 2e 20 49 74 |sleep de|mand. It|
|000037c0| 20 61 6c 6c 20 6c 6f 6f | 6b 73 20 71 75 69 74 65 | all loo|ks quite|
|000037d0| 20 73 69 6d 70 6c 65 2c | 20 62 75 74 20 61 66 74 | simple,| but aft|
|000037e0| 65 72 20 74 72 79 69 6e | 67 20 69 74 20 6d 79 73 |er tryin|g it mys|
|000037f0| 65 6c 66 20 49 20 77 61 | 73 20 61 62 6c 65 20 74 |elf I wa|s able t|
|00003800| 6f 20 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |o ......|...d..ON|
|00003810| 4c 4e 00 64 02 49 01 4e | 02 0d 01 5a 02 1c 00 28 |LN.d.I.N|...Z...(|
|00003820| 01 57 02 0d 03 73 65 65 | 00 06 00 00 00 00 00 a1 |.W...see|........|
|00003830| 00 64 00 10 4f 4e 4c 4e | 00 64 02 4d 01 5a 00 5a |.d..ONLN|.d.M.Z.Z|
|00003840| 01 66 00 f0 00 28 01 63 | 00 5a 22 74 68 61 74 20 |.f...(.c|.Z"that |
|00003850| 69 74 20 69 73 20 73 69 | 6d 70 6c 65 72 20 73 61 |it is si|mpler sa|
|00003860| 69 64 20 74 68 61 6e 20 | 64 6f 6e 65 2e 00 00 06 |id than |done....|
|00003870| 00 02 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003880| 02 71 01 72 00 5a 01 7e | 00 f8 00 2a 18 1d 54 68 |.q.r.Z.~|...*..Th|
|00003890| 65 20 50 6f 77 65 72 20 | 4d 61 6e 61 67 65 72 20 |e Power |Manager |
|000038a0| 63 68 61 70 74 65 72 20 | 69 6e 20 00 00 04 02 00 |chapter |in .....|
|000038b0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 8e 01 72 |...d..ON|LN.d...r|
|000038c0| 00 f8 01 7e 01 4b 00 29 | 9e 10 49 6e 73 69 64 65 |...~.K.)|..Inside|
|000038d0| 20 4d 61 63 69 6e 74 6f | 73 68 00 04 00 00 00 a1 | Macinto|sh......|
|000038e0| 00 64 00 10 4f 4e 4c 4e | 00 64 02 9e 01 72 01 4b |.d..ONLN|.d...r.K|
|000038f0| 01 7e 01 e4 00 29 53 1f | 20 56 6f 6c 75 6d 65 20 |.~...)S.| Volume |
|00003900| 56 49 20 63 6c 65 61 72 | 6c 79 20 73 74 61 74 65 |VI clear|ly state|
|00003910| 73 20 74 68 61 74 20 00 | 00 06 00 03 00 00 00 a1 |s that .|........|
|00003920| 00 64 00 10 4f 4e 4c 4e | 00 64 02 bd 01 72 01 e4 |.d..ONLN|.d...r..|
|00003930| 01 7e 02 1c 00 29 99 0b | d2 69 66 20 79 6f 75 20 |.~...)..|.if you |
|00003940| 61 72 65 00 00 06 00 00 | 00 00 00 a1 00 64 00 10 |are.....|.....d..|
|00003950| 4f 4e 4c 4e 00 64 02 c9 | 01 7e 00 5a 01 8a 01 f7 |ONLN.d..|.~.Z....|
|00003960| 00 28 01 87 00 5a 5a 77 | 72 69 74 69 6e 67 20 61 |.(...ZZw|riting a|
|00003970| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 68 |n applic|ation th|
|00003980| 61 74 20 6d 69 67 68 74 | 20 62 65 20 61 66 66 65 |at might| be affe|
|00003990| 63 74 65 64 20 62 79 20 | 74 68 65 20 73 6c 65 65 |cted by |the slee|
|000039a0| 70 20 73 74 61 74 65 20 | 6f 66 20 74 68 65 20 63 |p state |of the c|
|000039b0| 6f 6d 70 75 74 65 72 2c | 20 79 6f 75 20 63 61 6e |omputer,| you can|
|000039c0| 20 00 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e | .......|...d..ON|
|000039d0| 4c 4e 00 64 03 23 01 7e | 01 f7 01 8a 02 1c 00 28 |LN.d.#.~|.......(|
|000039e0| 01 87 01 f7 08 70 6c 61 | 63 65 20 69 6e 00 00 06 |.....pla|ce in...|
|000039f0| 00 02 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003a00| 03 2c 01 8a 00 5a 01 96 | 01 89 00 28 01 93 00 5a |.,...Z..|...(...Z|
|00003a10| 3d 74 68 65 20 73 6c 65 | 65 70 20 71 75 65 75 65 |=the sle|ep queue|
|00003a20| 20 61 20 72 6f 75 74 69 | 6e 65 20 74 68 61 74 20 | a routi|ne that |
|00003a30| 68 61 6e 64 6c 65 73 20 | 77 68 61 74 65 76 65 72 |handles |whatever|
|00003a40| 20 70 72 65 70 61 72 61 | 74 69 6f 6e 73 20 00 06 | prepara|tions ..|
|00003a50| 00 03 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003a60| 03 69 01 8a 01 89 01 96 | 02 1c 00 28 01 93 01 89 |.i......|...(....|
|00003a70| 1d 61 72 65 20 6e 65 63 | 65 73 73 61 72 79 20 74 |.are nec|essary t|
|00003a80| 6f 20 70 72 6f 74 65 63 | 74 20 79 6f 75 72 00 06 |o protec|t your..|
|00003a90| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003aa0| 03 87 01 96 00 5a 01 a2 | 01 d3 00 28 01 9f 00 5a |.....Z..|...(...Z|
|00003ab0| 4f 70 72 6f 67 72 61 6d | 20 77 68 65 6e 20 74 68 |Oprogram| when th|
|00003ac0| 65 20 50 6f 77 65 72 42 | 6f 6f 6b 20 65 6e 74 65 |e PowerB|ook ente|
|00003ad0| 72 73 20 74 68 65 20 73 | 6c 65 65 70 20 73 74 61 |rs the s|leep sta|
|00003ae0| 74 65 2e d3 20 49 74 20 | 61 6c 73 6f 20 67 6f 65 |te.. It |also goe|
|00003af0| 73 20 6f 6e 20 74 6f 20 | 73 61 79 20 74 68 61 74 |s on to |say that|
|00003b00| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003b10| 00 64 03 d8 01 ae 00 7e | 01 ba 01 92 00 2b 24 18 |.d.....~|.....+$.|
|00003b20| 36 d2 59 6f 75 20 63 61 | 6e 2c 20 66 6f 72 20 65 |6.You ca|n, for e|
|00003b30| 78 61 6d 70 6c 65 2c 20 | 64 69 73 70 6c 61 79 20 |xample, |display |
|00003b40| 61 6e 20 61 6c 65 72 74 | 20 62 6f 78 20 74 6f 20 |an alert| box to |
|00003b50| 69 6e 66 6f 72 6d 20 00 | 00 06 00 03 00 00 00 a1 |inform .|........|
|00003b60| 00 64 00 10 4f 4e 4c 4e | 00 64 04 0e 01 ae 01 92 |.d..ONLN|.d......|
|00003b70| 01 ba 01 f8 00 28 01 b7 | 01 92 15 74 68 65 20 75 |.....(..|...the u|
|00003b80| 73 65 72 20 6f 66 20 70 | 6f 74 65 6e 74 69 61 6c |ser of p|otential|
|00003b90| 00 06 00 00 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003ba0| 00 64 04 24 01 ba 00 7e | 01 c6 01 75 00 28 01 c3 |.d.$...~|...u.(..|
|00003bb0| 00 7e 34 70 72 6f 62 6c | 65 6d 73 2c 20 6f 72 20 |.~4probl|ems, or |
|00003bc0| 79 6f 75 20 63 61 6e 20 | 65 76 65 6e 20 64 69 73 |you can |even dis|
|00003bd0| 70 6c 61 79 20 61 20 64 | 69 61 6c 6f 67 20 62 6f |play a d|ialog bo|
|00003be0| 78 20 74 68 61 74 20 00 | 00 06 00 01 00 00 00 a1 |x that .|........|
|00003bf0| 00 64 00 10 4f 4e 4c 4e | 00 64 04 58 01 ba 01 75 |.d..ONLN|.d.X...u|
|00003c00| 01 c6 01 f8 00 29 f7 1c | 72 65 71 75 69 72 65 73 |.....)..|requires|
|00003c10| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 73 70 65 | the use|r to spe|
|00003c20| 63 69 66 79 00 06 00 00 | 00 00 00 a1 00 64 00 10 |cify....|.....d..|
|00003c30| 4f 4e 4c 4e 00 64 04 75 | 01 c6 00 7e 01 d2 01 02 |ONLN.d.u|...~....|
|00003c40| 00 28 01 cf 00 7e 1c 74 | 68 65 20 61 63 74 69 6f |.(...~.t|he actio|
|00003c50| 6e 20 74 6f 20 62 65 20 | 70 65 72 66 6f 72 6d 65 |n to be |performe|
|00003c60| 64 2e d3 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |d......d|..ONLN.d|
|00003c70| 04 93 01 de 00 5a 01 ea | 02 11 00 28 01 e7 00 5a |.....Z..|...(...Z|
|00003c80| 64 57 68 61 74 20 74 68 | 65 20 63 68 61 70 74 65 |dWhat th|e chapte|
|00003c90| 72 20 66 61 69 6c 73 20 | 74 6f 20 74 65 6c 6c 20 |r fails |to tell |
|00003ca0| 79 6f 75 20 69 73 20 74 | 68 61 74 20 74 68 65 72 |you is t|hat ther|
|00003cb0| 65 20 61 72 65 20 73 70 | 65 63 69 61 6c 20 74 72 |e are sp|ecial tr|
|00003cc0| 69 63 6b 73 20 74 68 61 | 74 20 6e 65 65 64 20 74 |icks tha|t need t|
|00003cd0| 6f 20 62 65 20 64 6f 6e | 65 20 74 6f 20 64 69 73 |o be don|e to dis|
|00003ce0| 70 6c 61 79 20 00 00 06 | 00 01 00 00 00 a1 00 64 |play ...|.......d|
|00003cf0| 00 10 4f 4e 4c 4e 00 64 | 04 f7 01 de 02 11 01 ea |..ONLN.d|........|
|00003d00| 02 1c 00 28 01 e7 02 11 | 02 61 6e 00 00 06 00 00 |...(....|.an.....|
|00003d10| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 fa |.....d..|ONLN.d..|
|00003d20| 01 ea 00 5a 01 f6 01 11 | 00 28 01 f3 00 5a 27 61 |...Z....|.(...Z'a|
|00003d30| 6c 65 72 74 20 62 6f 78 | 20 6f 72 20 64 69 61 6c |lert box| or dial|
|00003d40| 6f 67 20 62 6f 78 20 66 | 72 6f 6d 20 77 69 74 68 |og box f|rom with|
|00003d50| 69 6e 20 61 6e 20 00 04 | 01 00 00 a1 00 64 00 10 |in an ..|.....d..|
|00003d60| 4f 4e 4c 4e 00 64 05 21 | 01 ea 01 11 01 f6 01 4f |ONLN.d.!|.......O|
|00003d70| 00 29 b7 0b 61 70 70 6c | 69 63 61 74 69 6f 6e 00 |.)..appl|ication.|
|00003d80| 00 04 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003d90| 05 2c 01 ea 01 4f 01 f6 | 01 53 00 29 3e 01 2e 00 |.,...O..|.S.)>...|
|00003da0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 05 2f 02 02 |...d..ON|LN.d./..|
|00003db0| 00 5a 02 0e 02 04 00 28 | 02 0b 00 5a 5a 54 68 69 |.Z.....(|...ZZThi|
|00003dc0| 73 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |s Techni|cal Note|
|00003dd0| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 74 | describ|es the t|
|00003de0| 72 6f 75 62 6c 65 73 20 | 74 68 61 74 20 6f 6e 65 |roubles |that one|
|00003df0| 20 6d 61 79 20 72 75 6e | 20 69 6e 74 6f 20 77 68 | may run| into wh|
|00003e00| 65 6e 20 61 74 74 65 6d | 70 74 69 6e 67 20 74 6f |en attem|pting to|
|00003e10| 20 75 73 65 20 61 20 00 | 00 06 00 01 00 00 00 a1 | use a .|........|
|00003e20| 00 64 00 10 4f 4e 4c 4e | 00 64 05 89 02 02 02 04 |.d..ONLN|.d......|
|00003e30| 02 0e 02 1c 00 28 02 0b | 02 04 05 73 6c 65 65 70 |.....(..|...sleep|
|00003e40| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 05 8f 02 0e |...d..ON|LN.d....|
|00003e50| 00 5a 02 1a 01 3e 00 28 | 02 17 00 5a 30 71 75 65 |.Z...>.(|...Z0que|
|00003e60| 75 65 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 64 69 |ue routi|ne to di|
|00003e70| 73 70 6c 61 79 20 61 6e | 20 61 6c 65 72 74 20 6f |splay an| alert o|
|00003e80| 72 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 00 00 06 |r dialog| box ...|
|00003e90| 00 02 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003ea0| 05 bf 02 0e 01 3e 02 1a | 02 1c 00 29 e4 2a 77 68 |.....>..|...).*wh|
|00003eb0| 65 6e 20 61 20 73 6c 65 | 65 70 20 64 65 6d 61 6e |en a sle|ep deman|
|00003ec0| 64 20 6f 63 63 75 72 73 | 2e 20 54 68 69 73 20 6e |d occurs|. This n|
|00003ed0| 6f 74 65 20 61 6c 73 6f | 00 06 00 00 00 00 00 a1 |ote also|........|
|00003ee0| 00 64 00 10 4f 4e 4c 4e | 00 64 05 ea 02 1a 00 5a |.d..ONLN|.d.....Z|
|00003ef0| 02 26 01 b2 00 28 02 23 | 00 5a 4b 65 78 70 6c 61 |.&...(.#|.ZKexpla|
|00003f00| 69 6e 73 20 6a 75 73 74 | 20 77 68 61 74 20 6f 6e |ins just| what on|
|00003f10| 65 20 6e 65 65 64 73 20 | 74 6f 20 64 6f 20 74 6f |e needs |to do to|
|00003f20| 20 67 65 74 20 61 72 6f | 75 6e 64 20 73 75 63 68 | get aro|und such|
|00003f30| 20 64 69 66 66 69 63 75 | 6c 74 20 73 69 74 75 61 | difficu|lt situa|
|00003f40| 74 69 6f 6e 73 2e 00 04 | 01 00 00 0d 00 0e 00 a1 |tions...|........|
|00003f50| 00 64 00 10 4f 4e 4c 4e | 00 64 06 36 02 3e 00 5a |.d..ONLN|.d.6.>.Z|
|00003f60| 02 4d 01 81 00 2a 27 29 | 48 6f 77 20 44 6f 20 49 |.M...*')|How Do I|
|00003f70| 20 41 64 64 20 61 6e 20 | 45 6e 74 72 79 20 74 6f | Add an |Entry to|
|00003f80| 20 74 68 65 20 53 6c 65 | 65 70 20 51 75 65 75 65 | the Sle|ep Queue|
|00003f90| 3f 00 00 04 00 00 00 0d | 00 0c 00 06 00 02 00 00 |?.......|........|
|00003fa0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 60 02 59 |...d..ON|LN.d.`.Y|
|00003fb0| 00 5a 02 65 00 71 00 2a | 18 04 54 68 65 20 00 06 |.Z.e.q.*|..The ..|
|00003fc0| 00 03 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003fd0| 06 64 02 59 00 71 02 65 | 00 fc 00 29 17 19 50 6f |.d.Y.q.e|...)..Po|
|00003fe0| 77 65 72 20 4d 61 6e 61 | 67 65 72 20 63 68 61 70 |wer Mana|ger chap|
|00003ff0| 74 65 72 20 69 6e 20 00 | 00 04 02 00 00 a1 00 64 |ter in .|.......d|
|00004000| 00 10 4f 4e 4c 4e 00 64 | 06 7d 02 59 00 fc 02 65 |..ONLN.d|.}.Y...e|
|00004010| 01 50 00 29 8b 10 49 6e | 73 69 64 65 20 4d 61 63 |.P.)..In|side Mac|
|00004020| 69 6e 74 6f 73 68 00 04 | 00 00 00 a1 00 64 00 10 |intosh..|.....d..|
|00004030| 4f 4e 4c 4e 00 64 06 8d | 02 59 01 50 02 65 02 1c |ONLN.d..|.Y.P.e..|
|00004040| 00 29 54 25 20 76 6f 6c | 75 6d 65 20 56 49 20 70 |.)T% vol|ume VI p|
|00004050| 72 6f 76 69 64 65 73 20 | 74 68 65 20 61 73 73 65 |rovides |the asse|
|00004060| 6d 62 6c 79 20 63 6f 64 | 65 00 00 06 00 00 00 00 |mbly cod|e.......|
|00004070| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 b3 02 65 |...d..ON|LN.d...e|
|00004080| 00 5a 02 71 01 1f 00 28 | 02 6e 00 5a 2a 6e 65 65 |.Z.q...(|.n.Z*nee|
|00004090| 64 65 64 20 74 6f 20 61 | 64 64 20 61 6e 20 65 6e |ded to a|dd an en|
|000040a0| 74 72 79 20 74 6f 20 74 | 68 65 20 73 6c 65 65 70 |try to t|he sleep|
|000040b0| 20 71 75 65 75 65 2e 00 | 00 20 02 c0 00 58 02 c0 | queue..|. ...X..|
|000040c0| 02 1d 00 0d 00 0a 00 2a | 67 19 48 57 20 33 31 20 |.......*|g.HW 31 |
|000040d0| 2d 20 53 6c 65 65 70 20 | 51 75 65 75 65 20 54 61 |- Sleep |Queue Ta|
|000040e0| 73 6b 73 00 00 28 02 d5 | 02 04 01 31 00 29 05 05 |sks..(..|...1.)..|
|000040f0| 20 6f 66 20 37 00 00 28 | 02 eb 00 5a 08 48 61 72 | of 7..(|...Z.Har|
|00004100| 64 77 61 72 65 00 00 ff | 00 a1 00 c0 01 f4 25 25 |dware...|......%%|
|00004110| 44 53 49 44 49 43 54 3a | 5f 63 76 0d 63 75 72 72 |DSIDICT:|_cv.curr|
|00004120| 65 6e 74 64 69 63 74 20 | 2f 62 75 20 6b 6e 6f 77 |entdict |/bu know|
|00004130| 6e 20 7b 62 75 7d 69 66 | 0d 75 73 65 72 64 69 63 |n {bu}if|.userdic|
|00004140| 74 20 2f 5f 63 76 20 6b | 6e 6f 77 6e 20 6e 6f 74 |t /_cv k|nown not|
|00004150| 7b 75 73 65 72 64 69 63 | 74 20 2f 5f 63 76 20 33 |{userdic|t /_cv 3|
|00004160| 30 20 64 69 63 74 20 70 | 75 74 7d 69 66 0d 5f 63 |0 dict p|ut}if._c|
|00004170| 76 20 62 65 67 69 6e 0d | 2f 62 64 66 7b 62 69 6e |v begin.|/bdf{bin|
|00004180| 64 20 64 65 66 7d 62 69 | 6e 64 20 64 65 66 0d 63 |d def}bi|nd def.c|
|00004190| 75 72 72 65 6e 74 73 63 | 72 65 65 6e 2f 63 73 20 |urrentsc|reen/cs |
|000041a0| 65 78 63 68 20 64 65 66 | 2f 63 61 20 65 78 63 68 |exch def|/ca exch|
|000041b0| 20 64 65 66 2f 63 66 20 | 65 78 63 68 20 64 65 66 | def/cf |exch def|
|000041c0| 0d 2f 73 65 74 63 6d 79 | 6b 63 6f 6c 6f 72 20 77 |./setcmy|kcolor w|
|000041d0| 68 65 72 65 7b 2f 73 65 | 74 63 6d 79 6b 63 6f 6c |here{/se|tcmykcol|
|000041e0| 6f 72 20 67 65 74 20 2f | 63 76 63 6d 79 6b 20 65 |or get /|cvcmyk e|
|000041f0| 78 63 68 20 64 65 66 7d | 7b 2f 63 76 63 6d 79 6b |xch def}|{/cvcmyk|
|00004200| 7b 31 20 73 75 62 20 34 | 20 31 20 72 6f 6c 6c 20 |{1 sub 4| 1 roll |
|00004210| 33 7b 33 20 69 6e 64 65 | 78 20 61 64 64 20 6e 65 |3{3 inde|x add ne|
|00004220| 67 20 64 75 70 20 30 20 | 6c 74 7b 70 6f 70 20 30 |g dup 0 |lt{pop 0|
|00004230| 7d 69 66 20 33 20 31 20 | 72 6f 6c 6c 7d 72 65 70 |}if 3 1 |roll}rep|
|00004240| 65 61 74 20 73 65 74 72 | 67 62 63 6f 6c 6f 72 20 |eat setr|gbcolor |
|00004250| 70 6f 70 7d 62 64 66 20 | 7d 69 66 65 6c 73 65 0d |pop}bdf |}ifelse.|
|00004260| 2f 73 73 7b 2f 2f 63 66 | 20 2f 2f 63 61 20 2f 2f |/ss{//cf| //ca //|
|00004270| 63 73 20 73 65 74 73 63 | 72 65 65 6e 7d 62 64 66 |cs setsc|reen}bdf|
|00004280| 0d 2f 73 74 67 7b 73 73 | 20 73 65 74 67 72 61 79 |./stg{ss| setgray|
|00004290| 7d 62 64 66 0d 2f 73 74 | 72 67 62 7b 73 73 20 73 |}bdf./st|rgb{ss s|
|000042a0| 65 74 72 67 62 63 6f 6c | 6f 72 7d 62 64 66 0d 2f |etrgbcol|or}bdf./|
|000042b0| 73 74 63 6d 79 6b 7b 73 | 73 20 63 76 63 6d 79 6b |stcmyk{s|s cvcmyk|
|000042c0| 7d 62 64 66 0d 2f 6d 69 | 6e 31 7b 64 75 70 20 30 |}bdf./mi|n1{dup 0|
|000042d0| 20 65 71 7b 70 6f 70 20 | 31 7d 69 66 7d 62 64 66 | eq{pop |1}if}bdf|
|000042e0| 0d 65 6e 64 0d 63 75 72 | 72 65 6e 74 64 69 63 74 |.end.cur|rentdict|
|000042f0| 20 2f 62 6e 20 6b 6e 6f | 77 6e 20 7b 62 6e 7d 69 | /bn kno|wn {bn}i|
|00004300| 66 0d 00 a0 00 bf 10 a2 | 00 00 00 00 03 48 02 52 |f.......|.....H.R|
|00004310| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00004320| 00 00 02 52 00 00 03 48 | 00 00 00 00 00 00 00 1e |...R...H|........|
|00004330| 00 01 00 0a 00 00 00 00 | 03 48 02 52 00 2c 00 08 |........|.H.R.,..|
|00004340| 00 14 05 54 69 6d 65 73 | 00 03 00 14 00 0d 00 0a |...Times|........|
|00004350| 00 2e 00 04 00 00 00 00 | 00 2b 36 2d 19 4d 61 63 |........|.+6-.Mac|
|00004360| 69 6e 74 6f 73 68 20 54 | 65 63 68 6e 69 63 61 6c |intosh T|echnical|
|00004370| 20 4e 6f 74 65 73 00 20 | 00 2f 00 34 00 2f 01 f9 | Notes. |./.4./..|
|00004380| 00 04 01 00 00 0d 00 0e | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00004390| 4c 4e 00 64 00 00 00 3c | 00 36 00 4b 01 8b 00 2a |LN.d...<|.6.K...*|
|000043a0| 1b 30 57 68 61 74 20 48 | 61 70 70 65 6e 73 20 57 |.0What H|appens W|
|000043b0| 68 65 6e 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 |hen the |Macintos|
|000043c0| 68 20 49 73 20 50 75 74 | 20 74 6f 20 53 6c 65 65 |h Is Put| to Slee|
|000043d0| 70 3f 00 04 00 00 00 0d | 00 0c 00 06 00 01 00 00 |p?......|........|
|000043e0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 31 00 57 |...d..ON|LN.d.1.W|
|000043f0| 00 36 00 63 01 0a 00 2a | 18 2b 54 68 65 20 4d 61 |.6.c...*|.+The Ma|
|00004400| 63 69 6e 74 6f 73 68 20 | 69 73 20 75 73 75 61 6c |cintosh |is usual|
|00004410| 6c 79 20 70 75 74 20 74 | 6f 20 73 6c 65 65 70 20 |ly put t|o sleep |
|00004420| 66 72 6f 6d 20 00 00 06 | 00 02 00 00 00 a1 00 64 |from ...|.......d|
|00004430| 00 10 4f 4e 4c 4e 00 64 | 00 5c 00 57 01 0a 00 63 |..ONLN.d|.\.W...c|
|00004440| 01 f8 00 29 d4 2e 77 69 | 74 68 69 6e 20 74 68 65 |...)..wi|thin the|
|00004450| 20 46 69 6e 64 65 72 2c | 20 77 68 65 6e 20 74 68 | Finder,| when th|
|00004460| 65 20 75 73 65 72 20 63 | 68 6f 6f 73 65 73 20 53 |e user c|hooses S|
|00004470| 6c 65 65 70 00 06 00 00 | 00 00 00 a1 00 64 00 10 |leep....|.....d..|
|00004480| 4f 4e 4c 4e 00 64 00 8b | 00 63 00 36 00 6f 00 e0 |ONLN.d..|.c.6.o..|
|00004490| 00 28 00 6c 00 36 24 66 | 72 6f 6d 20 74 68 65 20 |.(.l.6$f|rom the |
|000044a0| 53 70 65 63 69 61 6c 20 | 6d 65 6e 75 2e 20 41 74 |Special |menu. At|
|000044b0| 20 74 68 69 73 20 74 69 | 6d 65 20 00 00 06 00 01 | this ti|me .....|
|000044c0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 af |.....d..|ONLN.d..|
|000044d0| 00 63 00 e0 00 6f 01 f8 | 00 29 aa 37 74 68 65 20 |.c...o..|.).7the |
|000044e0| 50 6f 77 65 72 20 4d 61 | 6e 61 67 65 72 20 77 61 |Power Ma|nager wa|
|000044f0| 6c 6b 73 20 74 68 65 20 | 73 6c 65 65 70 20 71 75 |lks the |sleep qu|
|00004500| 65 75 65 20 61 6e 64 20 | 63 61 6c 6c 73 20 65 76 |eue and |calls ev|
|00004510| 65 72 79 00 00 06 00 00 | 00 00 00 a1 00 64 00 10 |ery.....|.....d..|
|00004520| 4f 4e 4c 4e 00 64 00 e7 | 00 6f 00 36 00 7b 01 62 |ONLN.d..|.o.6.{.b|
|00004530| 00 28 00 78 00 36 41 73 | 75 62 72 6f 75 74 69 6e |.(.x.6As|ubroutin|
|00004540| 65 20 74 68 61 74 20 69 | 74 20 66 69 6e 64 73 20 |e that i|t finds |
|00004550| 74 68 65 72 65 2e 20 57 | 68 65 6e 20 79 6f 75 72 |there. W|hen your|
|00004560| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 67 65 74 73 | subrout|ine gets|
|00004570| 20 63 61 6c 6c 65 64 3a | 00 06 00 02 00 00 00 a1 | called:|........|
|00004580| 00 64 00 10 4f 4e 4c 4e | 00 64 01 29 00 87 00 36 |.d..ONLN|.d.)...6|
|00004590| 00 93 01 be 00 2a 18 4d | a5 20 54 68 65 20 63 75 |.....*.M|. The cu|
|000045a0| 72 72 65 6e 74 20 41 35 | 20 77 6f 72 6c 64 20 69 |rrent A5| world i|
|000045b0| 73 20 28 75 73 75 61 6c | 6c 79 29 20 74 68 65 20 |s (usual|ly) the |
|000045c0| 46 69 6e 64 65 72 d5 73 | 2e 20 54 68 69 73 20 6d |Finder.s|. This m|
|000045d0| 65 61 6e 73 20 74 68 61 | 74 20 79 6f 75 20 63 61 |eans tha|t you ca|
|000045e0| 6e 6e 6f 74 20 00 00 06 | 00 03 00 00 00 a1 00 64 |nnot ...|.......d|
|000045f0| 00 10 4f 4e 4c 4e 00 64 | 01 76 00 87 01 be 00 93 |..ONLN.d|.v......|
|00004600| 01 f8 00 28 00 90 01 be | 0b 61 63 63 65 73 73 20 |...(....|.access |
|00004610| 79 6f 75 72 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |your...d|..ONLN.d|
|00004620| 01 82 00 93 00 3f 00 9f | 00 fc 00 28 00 9c 00 3f |.....?..|...(...?|
|00004630| 25 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 67 6c |%applica|tions gl|
|00004640| 6f 62 61 6c 73 20 66 72 | 6f 6d 20 79 6f 75 72 20 |obals fr|om your |
|00004650| 73 6c 65 65 70 20 00 06 | 00 04 00 00 00 a1 00 64 |sleep ..|.......d|
|00004660| 00 10 4f 4e 4c 4e 00 64 | 01 a7 00 93 00 fc 00 9f |..ONLN.d|........|
|00004670| 01 f8 00 29 bd 31 72 6f | 75 74 69 6e 65 20 28 75 |...).1ro|utine (u|
|00004680| 6e 6c 65 73 73 20 79 6f | 75 20 66 6f 6c 6c 6f 77 |nless yo|u follow|
|00004690| 20 74 68 65 20 67 75 69 | 64 65 6c 69 6e 65 73 20 | the gui|delines |
|000046a0| 66 75 72 74 68 65 72 00 | 00 06 00 00 00 00 00 a1 |further.|........|
|000046b0| 00 64 00 10 4f 4e 4c 4e | 00 64 01 d9 00 9f 00 3f |.d..ONLN|.d.....?|
|000046c0| 00 ab 00 ab 00 28 00 a8 | 00 3f 18 64 65 73 63 72 |.....(..|.?.descr|
|000046d0| 69 62 65 64 20 69 6e 20 | 74 68 69 73 20 6e 6f 74 |ibed in |this not|
|000046e0| 65 29 2e 00 00 06 00 02 | 00 00 00 a1 00 64 00 10 |e)......|.....d..|
|000046f0| 4f 4e 4c 4e 00 64 01 f2 | 00 b7 00 36 00 c3 01 2c |ONLN.d..|...6...,|
|00004700| 00 28 00 c0 00 36 32 a5 | 20 54 68 65 20 63 75 72 |.(...62.| The cur|
|00004710| 72 65 6e 74 20 72 65 73 | 6f 75 72 63 65 20 63 68 |rent res|ource ch|
|00004720| 61 69 6e 20 69 73 20 61 | 6c 73 6f 20 74 68 65 20 |ain is a|lso the |
|00004730| 46 69 6e 64 65 72 d5 73 | 20 00 00 06 00 03 00 00 |Finder.s| .......|
|00004740| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 24 00 b7 |...d..ON|LN.d.$..|
|00004750| 01 2c 00 c3 01 f8 00 29 | f6 27 73 6f 20 79 6f 75 |.,.....)|.'so you|
|00004760| 20 63 61 6e 20 6e 6f 74 | 20 61 63 63 65 73 73 20 | can not| access |
|00004770| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00004780| 73 00 00 06 00 00 00 00 | 00 a1 00 64 00 10 4f 4e |s.......|...d..ON|
|00004790| 4c 4e 00 64 02 4c 00 c3 | 00 3f 00 cf 01 bb 00 28 |LN.d.L..|.?.....(|
|000047a0| 00 cc 00 3f 53 72 65 73 | 6f 75 72 63 65 73 20 65 |...?Sres|ources e|
|000047b0| 69 74 68 65 72 20 28 75 | 6e 6c 65 73 73 20 79 6f |ither (u|nless yo|
|000047c0| 75 20 66 6f 6c 6c 6f 77 | 20 74 68 65 20 67 75 69 |u follow| the gui|
|000047d0| 64 65 6c 69 6e 65 73 20 | 66 75 72 74 68 65 72 20 |delines |further |
|000047e0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 69 |describe|d in thi|
|000047f0| 73 20 6e 6f 74 65 29 2e | 00 04 01 00 00 0d 00 0e |s note).|........|
|00004800| 00 06 00 02 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00004810| 00 64 02 a0 00 e7 00 36 | 00 f6 00 ef 00 28 00 f3 |.d.....6|.....(..|
|00004820| 00 36 18 54 68 65 20 50 | 6f 77 65 72 20 4d 61 6e |.6.The P|ower Man|
|00004830| 61 67 65 72 20 43 61 6c | 6c 73 20 00 00 06 00 03 |ager Cal|ls .....|
|00004840| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 b8 |.....d..|ONLN.d..|
|00004850| 00 e7 00 ef 00 f6 01 f8 | 00 29 b9 22 4d 79 20 53 |........|.)."My S|
|00004860| 75 62 72 6f 75 74 69 6e | 65 20 46 72 6f 6d 20 74 |ubroutin|e From t|
|00004870| 68 65 20 53 6c 65 65 70 | 20 51 75 65 75 65 00 06 |he Sleep| Queue..|
|00004880| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004890| 02 db 00 f6 00 36 01 05 | 01 64 00 28 01 02 00 36 |.....6..|.d.(...6|
|000048a0| 28 62 75 74 20 4d 79 20 | 44 69 61 6c 6f 67 20 42 |(but My |Dialog B|
|000048b0| 6f 78 20 4e 65 76 65 72 | 20 47 65 74 73 20 44 72 |ox Never| Gets Dr|
|000048c0| 61 77 6e 2e 20 57 68 79 | 3f 00 00 04 00 00 00 0d |awn. Why|?.......|
|000048d0| 00 0c 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 03 04 |.....d..|ONLN.d..|
|000048e0| 01 11 00 36 01 1d 01 a2 | 00 2a 18 4a 54 6f 20 64 |...6....|.*.JTo d|
|000048f0| 72 61 77 20 79 6f 75 72 | 20 64 69 61 6c 6f 67 20 |raw your| dialog |
|00004900| 62 6f 78 2c 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |box, you| need to|
|00004910| 20 72 65 73 74 6f 72 65 | 20 79 6f 75 72 20 41 35 | restore| your A5|
|00004920| 20 77 6f 72 6c 64 20 73 | 6f 20 79 6f 75 20 63 61 | world s|o you ca|
|00004930| 6e 20 75 73 65 20 00 06 | 00 01 00 00 00 a1 00 64 |n use ..|.......d|
|00004940| 00 10 4f 4e 4c 4e 00 64 | 03 4e 01 11 01 a2 01 1d |..ONLN.d|.N......|
|00004950| 01 f8 00 28 01 1a 01 a2 | 12 79 6f 75 72 20 61 70 |...(....|.your ap|
|00004960| 70 6c 69 63 61 74 69 6f | 6e d5 73 00 00 a1 00 64 |plicatio|n.s....d|
|00004970| 00 10 4f 4e 4c 4e 00 64 | 03 61 01 1d 00 36 01 29 |..ONLN.d|.a...6.)|
|00004980| 01 4b 00 28 01 26 00 36 | 39 64 61 74 61 20 61 6e |.K.(.&.6|9data an|
|00004990| 64 20 6a 75 6d 70 20 74 | 61 62 6c 65 2e 20 54 6f |d jump t|able. To|
|000049a0| 20 64 6f 20 74 68 69 73 | 2c 20 79 6f 75 20 77 69 | do this|, you wi|
|000049b0| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 73 61 76 65 20 |ll need |to save |
|000049c0| 61 20 00 06 00 02 00 00 | 00 a1 00 64 00 10 4f 4e |a ......|...d..ON|
|000049d0| 4c 4e 00 64 03 9a 01 1d | 01 4b 01 29 01 f8 00 28 |LN.d....|.K.)...(|
|000049e0| 01 26 01 4b 22 63 6f 70 | 79 20 6f 66 20 79 6f 75 |.&.K"cop|y of you|
|000049f0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |r applic|ation.s |
|00004a00| 41 35 20 74 6f 20 61 00 | 00 06 00 00 00 00 00 a1 |A5 to a.|........|
|00004a10| 00 64 00 10 4f 4e 4c 4e | 00 64 03 bd 01 29 00 36 |.d..ONLN|.d...).6|
|00004a20| 01 35 01 e2 00 28 01 32 | 00 36 5b 6d 65 6d 6f 72 |.5...(.2|.6[memor|
|00004a30| 79 20 6c 6f 63 61 74 69 | 6f 6e 20 79 6f 75 72 20 |y locati|on your |
|00004a40| 73 75 62 72 6f 75 74 69 | 6e 65 20 63 61 6e 20 66 |subrouti|ne can f|
|00004a50| 69 6e 64 20 6c 61 74 65 | 72 2e 20 41 20 67 6f 6f |ind late|r. A goo|
|00004a60| 64 20 74 69 6d 65 20 74 | 6f 20 64 6f 20 74 68 69 |d time t|o do thi|
|00004a70| 73 20 69 73 20 77 68 65 | 6e 20 79 6f 75 20 69 6e |s is whe|n you in|
|00004a80| 73 74 61 6c 6c 20 00 06 | 00 01 00 00 00 a1 00 64 |stall ..|.......d|
|00004a90| 00 10 4f 4e 4c 4e 00 64 | 04 18 01 29 01 e2 01 35 |..ONLN.d|...)...5|
|00004aa0| 01 f8 00 28 01 32 01 e2 | 04 79 6f 75 72 00 00 06 |...(.2..|.your...|
|00004ab0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004ac0| 04 1d 01 35 00 36 01 41 | 01 7f 00 28 01 3e 00 36 |...5.6.A|...(.>.6|
|00004ad0| 44 73 6c 65 65 70 20 71 | 75 65 75 65 20 72 6f 75 |Dsleep q|ueue rou|
|00004ae0| 74 69 6e 65 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |tine. Th|e follow|
|00004af0| 69 6e 67 20 63 6f 64 65 | 20 64 65 6d 6f 6e 73 74 |ing code| demonst|
|00004b00| 72 61 74 65 73 20 68 6f | 77 20 74 6f 20 64 6f 20 |rates ho|w to do |
|00004b10| 74 68 69 73 3a 00 00 2c | 00 0a 00 16 07 43 6f 75 |this:..,|.....Cou|
|00004b20| 72 69 65 72 00 03 00 16 | 00 0d 00 09 00 a1 00 64 |rier....|.......d|
|00004b30| 00 10 4f 4e 4c 4e 00 64 | 04 62 01 4d 00 36 01 58 |..ONLN.d|.b.M.6.X|
|00004b40| 00 59 00 2a 17 07 4d 79 | 41 35 72 65 66 00 00 a1 |.Y.*..My|A5ref...|
|00004b50| 00 64 00 10 4f 4e 4c 4e | 00 64 04 6a 01 4d 00 75 |.d..ONLN|.d.j.M.u|
|00004b60| 01 58 00 89 00 29 3f 04 | 50 52 4f 43 00 a1 00 64 |.X...)?.|PROC...d|
|00004b70| 00 10 4f 4e 4c 4e 00 64 | 04 6f 01 4d 00 99 01 58 |..ONLN.d|.o.M...X|
|00004b80| 00 b7 00 29 24 06 45 58 | 50 4f 52 54 00 a1 00 64 |...)$.EX|PORT...d|
|00004b90| 00 10 4f 4e 4c 4e 00 64 | 04 77 01 4d 01 17 01 58 |..ONLN.d|.w.M...X|
|00004ba0| 01 8f 00 29 7e 18 3b 20 | 73 74 6f 72 65 20 6f 75 |...)~.; |store ou|
|00004bb0| 72 20 41 35 20 69 6e 20 | 6d 65 6d 6f 72 79 00 a1 |r A5 in |memory..|
|00004bc0| 00 64 00 10 4f 4e 4c 4e | 00 64 04 92 01 57 00 99 |.d..ONLN|.d...W..|
|00004bd0| 01 62 00 b2 00 28 01 5f | 00 99 05 44 53 2e 4c 20 |.b...(._|...DS.L |
|00004be0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 04 98 01 57 |...d..ON|LN.d...W|
|00004bf0| 00 cf 01 62 00 d4 00 29 | 36 01 31 00 00 a1 00 64 |...b...)|6.1....d|
|00004c00| 00 10 4f 4e 4c 4e 00 64 | 04 9a 01 57 01 17 01 62 |..ONLN.d|...W...b|
|00004c10| 01 8f 00 29 48 18 3b 20 | 6c 6f 63 61 74 69 6f 6e |...)H.; |location|
|00004c20| 20 72 65 66 65 72 65 6e | 63 65 64 20 62 79 00 a1 | referen|ced by..|
|00004c30| 00 64 00 10 4f 4e 4c 4e | 00 64 04 b7 01 61 01 17 |.d..ONLN|.d...a..|
|00004c40| 01 6c 01 44 00 2a 0a 09 | 3b 20 6d 79 41 35 72 65 |.l.D.*..|; myA5re|
|00004c50| 66 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 c3 |f....d..|ONLN.d..|
|00004c60| 01 6b 00 99 01 76 00 ad | 00 28 01 73 00 99 04 45 |.k...v..|.(.s...E|
|00004c70| 4e 44 50 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |NDP....d|..ONLN.d|
|00004c80| 04 c8 01 7f 00 36 01 8a | 00 68 00 28 01 87 00 36 |.....6..|.h.(...6|
|00004c90| 0a 53 74 6f 72 65 41 35 | 52 65 66 00 00 a1 00 64 |.StoreA5|Ref....d|
|00004ca0| 00 10 4f 4e 4c 4e 00 64 | 04 d3 01 7f 00 75 01 8a |..ONLN.d|.....u..|
|00004cb0| 00 89 00 29 3f 04 50 52 | 4f 43 00 a1 00 64 00 10 |...)?.PR|OC...d..|
|00004cc0| 4f 4e 4c 4e 00 64 04 d8 | 01 7f 00 99 01 8a 00 b7 |ONLN.d..|........|
|00004cd0| 00 29 24 06 45 58 50 4f | 52 54 00 a1 00 64 00 10 |.)$.EXPO|RT...d..|
|00004ce0| 4f 4e 4c 4e 00 64 04 e1 | 01 89 00 99 01 94 00 b7 |ONLN.d..|........|
|00004cf0| 00 2a 0a 06 49 4d 50 4f | 52 54 00 a1 00 64 00 10 |.*..IMPO|RT...d..|
|00004d00| 4f 4e 4c 4e 00 64 04 e8 | 01 89 00 cf 01 94 00 f2 |ONLN.d..|........|
|00004d10| 00 29 36 07 4d 79 41 35 | 52 65 66 00 00 a1 00 64 |.)6.MyA5|Ref....d|
|00004d20| 00 10 4f 4e 4c 4e 00 64 | 04 f2 01 93 00 99 01 9e |..ONLN.d|........|
|00004d30| 00 ad 00 28 01 9b 00 99 | 04 4c 45 41 20 00 00 a1 |...(....|.LEA ...|
|00004d40| 00 64 00 10 4f 4e 4c 4e | 00 64 04 f7 01 93 00 cf |.d..ONLN|.d......|
|00004d50| 01 9e 01 01 00 29 36 0a | 4d 79 41 35 72 65 66 2c |.....)6.|MyA5ref,|
|00004d60| 61 30 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 02 |a0...d..|ONLN.d..|
|00004d70| 01 93 01 17 01 9e 01 9e | 00 29 48 1b 3b 20 70 6f |........|.)H.; po|
|00004d80| 69 6e 74 20 74 6f 20 6f | 75 72 20 73 74 6f 72 61 |int to o|ur stora|
|00004d90| 67 65 20 61 72 65 61 00 | 00 a1 00 64 00 10 4f 4e |ge area.|...d..ON|
|00004da0| 4c 4e 00 64 05 20 01 9d | 00 99 01 a8 00 bc 00 28 |LN.d. ..|.......(|
|00004db0| 01 a5 00 99 07 4d 4f 56 | 45 2e 4c 20 00 a1 00 64 |.....MOV|E.L ...d|
|00004dc0| 00 10 4f 4e 4c 4e 00 64 | 05 28 01 9d 00 cf 01 a8 |..ONLN.d|.(......|
|00004dd0| 00 f7 00 29 36 08 34 28 | 73 70 29 2c 64 30 00 a1 |...)6.4(|sp),d0..|
|00004de0| 00 64 00 10 4f 4e 4c 4e | 00 64 05 34 01 a7 00 99 |.d..ONLN|.d.4....|
|00004df0| 01 b2 00 bc 00 28 01 af | 00 99 07 4d 4f 56 45 2e |.....(..|...MOVE.|
|00004e00| 4c 20 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 3c |L ...d..|ONLN.d.<|
|00004e10| 01 a7 00 cf 01 b2 00 f2 | 00 29 36 07 64 30 2c 28 |........|.)6.d0,(|
|00004e20| 61 30 29 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |a0)....d|..ONLN.d|
|00004e30| 05 44 01 a7 01 17 01 b2 | 01 a8 00 29 48 1d 3b 20 |.D......|...)H.; |
|00004e40| 73 61 76 65 20 61 20 63 | 6f 70 79 20 6f 66 20 6f |save a c|opy of o|
|00004e50| 75 72 20 41 35 20 74 68 | 65 72 65 00 00 a1 00 64 |ur A5 th|ere....d|
|00004e60| 00 10 4f 4e 4c 4e 00 64 | 05 64 01 b1 00 99 01 bc |..ONLN.d|.d......|
|00004e70| 00 a8 00 28 01 b9 00 99 | 03 52 54 53 00 a1 00 64 |...(....|.RTS...d|
|00004e80| 00 10 4f 4e 4c 4e 00 64 | 05 6a 01 bb 00 99 01 c6 |..ONLN.d|.j......|
|00004e90| 00 ad 00 2a 0a 04 45 4e | 44 50 00 a1 00 64 00 10 |...*..EN|DP...d..|
|00004ea0| 4f 4e 4c 4e 00 64 05 6f | 01 d9 00 36 01 e4 00 59 |ONLN.d.o|...6...Y|
|00004eb0| 00 28 01 e1 00 36 07 44 | 6f 53 6c 65 65 70 00 a1 |.(...6.D|oSleep..|
|00004ec0| 00 64 00 10 4f 4e 4c 4e | 00 64 05 77 01 d9 00 75 |.d..ONLN|.d.w...u|
|00004ed0| 01 e4 00 89 00 29 3f 04 | 50 52 4f 43 00 a1 00 64 |.....)?.|PROC...d|
|00004ee0| 00 10 4f 4e 4c 4e 00 64 | 05 7c 01 d9 00 99 01 e4 |..ONLN.d|.|......|
|00004ef0| 00 b7 00 29 24 06 45 58 | 50 4f 52 54 00 a1 00 64 |...)$.EX|PORT...d|
|00004f00| 00 10 4f 4e 4c 4e 00 64 | 05 85 01 e3 00 99 01 ee |..ONLN.d|........|
|00004f10| 00 bc 00 2a 0a 07 49 4d | 50 4f 52 54 20 00 00 a1 |...*..IM|PORT ...|
|00004f20| 00 64 00 10 4f 4e 4c 4e | 00 64 05 8d 01 e3 00 cf |.d..ONLN|.d......|
|00004f30| 01 ee 01 1f 00 29 36 10 | 4d 79 41 35 52 65 66 2c |.....)6.|MyA5Ref,|
|00004f40| 73 6c 65 65 70 64 6d 64 | 00 a1 00 64 00 10 4f 4e |sleepdmd|...d..ON|
|00004f50| 4c 4e 00 64 05 a0 01 f7 | 00 99 02 02 00 ad 00 28 |LN.d....|.......(|
|00004f60| 01 ff 00 99 04 4c 45 41 | 20 00 00 a1 00 64 00 10 |.....LEA| ....d..|
|00004f70| 4f 4e 4c 4e 00 64 05 a6 | 01 f7 00 d8 02 02 01 0a |ONLN.d..|........|
|00004f80| 00 29 3f 0a 4d 79 41 35 | 72 65 66 2c 41 30 00 a1 |.)?.MyA5|ref,A0..|
|00004f90| 00 64 00 10 4f 4e 4c 4e | 00 64 05 b1 01 f7 01 17 |.d..ONLN|.d......|
|00004fa0| 02 02 01 a3 00 29 3f 1c | 3b 20 70 6f 69 6e 74 20 |.....)?.|; point |
|00004fb0| 74 6f 20 6f 75 72 20 73 | 74 6f 72 61 67 65 20 61 |to our s|torage a|
|00004fc0| 72 65 61 2e 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |rea....d|..ONLN.d|
|00004fd0| 05 d0 02 01 00 99 02 0c | 00 bc 00 28 02 09 00 99 |........|...(....|
|00004fe0| 07 4d 4f 56 45 2e 4c 20 | 00 a1 00 64 00 10 4f 4e |.MOVE.L |...d..ON|
|00004ff0| 4c 4e 00 64 05 d8 02 01 | 00 cf 02 0c 01 01 00 29 |LN.d....|.......)|
|00005000| 36 0a 28 61 30 29 2c 2d | 28 73 70 29 00 a1 00 64 |6.(a0),-|(sp)...d|
|00005010| 00 10 4f 4e 4c 4e 00 64 | 05 e3 02 01 01 17 02 0c |..ONLN.d|........|
|00005020| 01 a8 00 29 48 1d 3b 20 | 70 75 73 68 20 6f 75 72 |...)H.; |push our|
|00005030| 20 73 61 76 65 64 20 41 | 35 20 6f 6e 74 6f 20 74 | saved A|5 onto t|
|00005040| 68 65 20 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |he ....d|..ONLN.d|
|00005050| 06 05 02 0b 01 17 02 16 | 01 3a 00 2a 0a 07 3b 20 |........|.:.*..; |
|00005060| 73 74 61 63 6b 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |stack...|.d..ONLN|
|00005070| 00 64 06 0f 02 15 00 99 | 02 20 00 ad 00 28 02 1d |.d......|. ...(..|
|00005080| 00 99 04 4a 53 52 20 00 | 00 a1 00 64 00 10 4f 4e |...JSR .|...d..ON|
|00005090| 4c 4e 00 64 06 15 02 15 | 00 d8 02 20 01 00 00 29 |LN.d....|... ...)|
|000050a0| 3f 08 73 6c 65 65 70 64 | 6d 64 00 a1 00 64 00 10 |?.sleepd|md...d..|
|000050b0| 4f 4e 4c 4e 00 64 06 1e | 02 15 01 17 02 20 01 7b |ONLN.d..|..... .{|
|000050c0| 00 29 3f 14 3b 20 63 61 | 6c 6c 20 6f 75 72 20 43 |.)?.; ca|ll our C|
|000050d0| 20 72 6f 75 74 69 6e 65 | 00 a1 00 64 00 10 4f 4e | routine|...d..ON|
|000050e0| 4c 4e 00 64 06 35 02 1f | 00 99 02 2a 00 b2 00 28 |LN.d.5..|...*...(|
|000050f0| 02 27 00 99 05 41 44 44 | 51 20 00 a1 00 64 00 10 |.'...ADD|Q ...d..|
|00005100| 4f 4e 4c 4e 00 64 06 3c | 02 1f 00 d8 02 2a 00 f6 |ONLN.d.<|.....*..|
|00005110| 00 29 3f 06 23 34 2c 73 | 70 20 00 a1 00 64 00 10 |.)?.#4,s|p ...d..|
|00005120| 4f 4e 4c 4e 00 64 06 43 | 02 1f 01 17 02 2a 01 a3 |ONLN.d.C|.....*..|
|00005130| 00 29 3f 1c 3b 57 65 20 | 6e 65 65 64 20 74 6f 20 |.)?.;We |need to |
|00005140| 63 6c 65 61 72 20 74 68 | 65 20 73 74 61 63 6b 20 |clear th|e stack |
|00005150| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 64 02 29 |...d..ON|LN.d.d.)|
|00005160| 01 17 02 34 01 3a 00 2a | 0a 07 3b 20 73 69 6e 63 |...4.:.*|..; sinc|
|00005170| 65 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 06 6f |e....d..|ONLN.d.o|
|00005180| 02 33 00 99 02 3e 00 a8 | 00 28 02 3b 00 99 03 52 |.3...>..|.(.;...R|
|00005190| 54 53 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 06 75 |TS...d..|ONLN.d.u|
|000051a0| 02 33 01 17 02 3e 01 ad | 00 29 7e 1e 3b 43 20 72 |.3...>..|.)~.;C r|
|000051b0| 6f 75 74 69 6e 65 73 20 | 63 6c 65 61 72 20 74 68 |outines |clear th|
|000051c0| 65 20 73 74 61 63 6b 20 | 6f 6e 00 a1 00 64 00 10 |e stack |on...d..|
|000051d0| 4f 4e 4c 4e 00 64 06 99 | 02 3d 01 17 02 48 01 3a |ONLN.d..|.=...H.:|
|000051e0| 00 2a 0a 07 3b 20 65 6e | 74 72 79 00 00 a1 00 64 |.*..; en|try....d|
|000051f0| 00 10 4f 4e 4c 4e 00 64 | 06 a1 02 47 00 36 02 52 |..ONLN.d|...G.6.R|
|00005200| 00 3b 00 28 02 4f 00 36 | 01 2e 00 a1 00 64 00 10 |.;.(.O.6|.....d..|
|00005210| 4f 4e 4c 4e 00 64 06 a4 | 02 47 00 99 02 52 00 ad |ONLN.d..|.G...R..|
|00005220| 00 29 63 04 45 4e 44 50 | 00 a1 00 64 00 10 4f 4e |.)c.ENDP|...d..ON|
|00005230| 4c 4e 00 64 06 ab 02 47 | 01 17 02 52 01 9e 00 29 |LN.d...G|...R...)|
|00005240| 7e 1b 3b 50 61 73 63 61 | 6c 20 72 6f 75 74 69 6e |~.;Pasca|l routin|
|00005250| 65 73 20 63 6c 65 61 72 | 20 74 68 65 20 00 00 a1 |es clear| the ...|
|00005260| 00 64 00 10 4f 4e 4c 4e | 00 64 06 cb 02 51 01 17 |.d..ONLN|.d...Q..|
|00005270| 02 5c 01 67 00 2a 0a 10 | 3b 20 73 74 61 63 6b 20 |.\.g.*..|; stack |
|00005280| 6f 6e 20 65 78 69 74 2e | 00 03 00 14 00 0d 00 0c |on exit.|........|
|00005290| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 dc 02 67 |...d..ON|LN.d...g|
|000052a0| 00 36 02 73 01 26 00 28 | 02 70 00 36 35 41 66 74 |.6.s.&.(|.p.65Aft|
|000052b0| 65 72 20 74 68 69 73 20 | 69 73 20 64 6f 6e 65 20 |er this |is done |
|000052c0| 79 6f 75 20 77 69 6c 6c | 20 6e 65 65 64 20 74 6f |you will| need to|
|000052d0| 20 73 61 76 65 20 74 68 | 65 20 63 75 72 72 65 6e | save th|e curren|
|000052e0| 74 20 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |t ......|...d..ON|
|000052f0| 4c 4e 00 64 07 11 02 67 | 01 26 02 73 01 f8 00 29 |LN.d...g|.&.s...)|
|00005300| f0 2a 41 35 20 61 6e 64 | 20 72 65 73 74 6f 72 65 |.*A5 and| restore|
|00005310| 20 41 35 20 69 6e 20 79 | 6f 75 72 20 73 6c 65 65 | A5 in y|our slee|
|00005320| 70 20 73 75 62 72 6f 75 | 74 69 6e 65 00 06 00 00 |p subrou|tine....|
|00005330| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 3c |.....d..|ONLN.d.<|
|00005340| 02 73 00 36 02 7f 00 6a | 00 28 02 7c 00 36 0b 61 |.s.6...j|.(.|.6.a|
|00005350| 73 20 66 6f 6c 6c 6f 77 | 73 3a 00 20 02 c0 00 34 |s follow|s:. ...4|
|00005360| 02 c0 01 f9 00 0d 00 0a | 00 2a 59 01 32 00 00 29 |........|.*Y.2..)|
|00005370| 05 05 20 6f 66 20 37 00 | 00 28 02 d5 01 86 19 48 |.. of 7.|.(.....H|
|00005380| 57 20 33 31 20 2d 20 53 | 6c 65 65 70 20 51 75 65 |W 31 - S|leep Que|
|00005390| 75 65 20 54 61 73 6b 73 | 00 2b 4e 16 08 48 61 72 |ue Tasks|.+N..Har|
|000053a0| 64 77 61 72 65 00 00 ff | 11 c2 00 00 00 00 03 48 |dware...|.......H|
|000053b0| 02 52 00 11 02 ff 0c 00 | ff ff ff ff 00 00 00 00 |.R......|........|
|000053c0| 00 00 00 00 02 52 00 00 | 03 48 00 00 00 00 00 00 |.....R..|.H......|
|000053d0| 00 1e 00 01 00 0a 00 00 | 00 00 03 48 02 52 00 2c |........|...H.R.,|
|000053e0| 00 08 00 14 05 54 69 6d | 65 73 00 03 00 14 00 0d |.....Tim|es......|
|000053f0| 00 0a 00 2e 00 04 00 00 | 00 00 00 2b 5a 2d 18 44 |........|...+Z-.D|
|00005400| 65 76 65 6c 6f 70 65 72 | 20 53 75 70 70 6f 72 74 |eveloper| Support|
|00005410| 20 43 65 6e 74 65 72 00 | 00 28 00 2d 01 f3 08 4d | Center.|.(.-...M|
|00005420| 61 79 20 31 39 39 33 00 | 00 20 00 2f 00 58 00 2f |ay 1993.|. ./.X./|
|00005430| 02 1d 00 2c 00 0a 00 16 | 07 43 6f 75 72 69 65 72 |...,....|.Courier|
|00005440| 00 03 00 16 00 0d 00 09 | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00005450| 4c 4e 00 64 00 00 00 3c | 00 5a 00 47 00 e1 00 28 |LN.d...<|.Z.G...(|
|00005460| 00 44 00 5a 1b 76 6f 69 | 64 20 53 4c 45 45 50 44 |.D.Z.voi|d SLEEPD|
|00005470| 4d 44 28 6c 6f 6e 67 20 | 74 68 65 41 35 29 20 7b |MD(long |theA5) {|
|00005480| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 1f 00 50 |...d..ON|LN.d...P|
|00005490| 00 7e 00 5b 00 97 00 2b | 24 14 05 73 68 6f 72 74 |.~.[...+|$..short|
|000054a0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 26 00 50 |...d..ON|LN.d.&.P|
|000054b0| 00 c6 00 5b 00 f3 00 29 | 48 09 69 74 65 6d 20 3d |...[...)|H.item =|
|000054c0| 20 30 3b 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 | 0;....d|..ONLN.d|
|000054d0| 00 31 00 5a 00 7e 00 65 | 00 92 00 28 00 62 00 7e |.1.Z.~.e|...(.b.~|
|000054e0| 04 6c 6f 6e 67 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |.long...|.d..ONLN|
|000054f0| 00 64 00 37 00 5a 00 c6 | 00 65 00 e4 00 29 48 06 |.d.7.Z..|.e...)H.|
|00005500| 6f 6c 64 41 35 3b 00 a1 | 00 64 00 10 4f 4e 4c 4e |oldA5;..|.d..ONLN|
|00005510| 00 64 00 3f 00 64 00 7e | 00 6f 00 ab 00 28 00 6c |.d.?.d.~|.o...(.l|
|00005520| 00 7e 09 44 69 61 6c 6f | 67 50 74 72 00 a1 00 64 |.~.Dialo|gPtr...d|
|00005530| 00 10 4f 4e 4c 4e 00 64 | 00 49 00 64 00 c6 00 6f |..ONLN.d|.I.d...o|
|00005540| 00 f3 00 29 48 09 6d 79 | 44 69 61 6c 6f 67 3b 00 |...)H.my|Dialog;.|
|00005550| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 56 00 78 |...d..ON|LN.d.V.x|
|00005560| 00 7e 00 83 00 f1 00 28 | 00 80 00 7e 17 6f 6c 64 |.~.....(|...~.old|
|00005570| 41 35 20 3d 20 53 65 74 | 43 75 72 72 65 6e 74 41 |A5 = Set|CurrentA|
|00005580| 35 28 29 3b 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |5();...d|..ONLN.d|
|00005590| 00 6f 00 82 00 7e 00 8d | 00 bf 00 2a 0a 0d 53 65 |.o...~..|...*..Se|
|000055a0| 74 41 35 28 74 68 65 41 | 35 29 3b 00 00 a1 00 64 |tA5(theA|5);....d|
|000055b0| 00 10 4f 4e 4c 4e 00 64 | 00 80 00 96 00 7e 00 a1 |..ONLN.d|.....~..|
|000055c0| 01 a5 00 2a 14 3b 2f 2f | 20 44 6f 20 77 68 61 74 |...*.;//| Do what|
|000055d0| 65 76 65 72 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |ever you| need to|
|000055e0| 20 64 6f 20 68 65 72 65 | 20 74 6f 20 73 68 6f 77 | do here| to show|
|000055f0| 20 79 6f 75 72 20 64 69 | 61 6c 6f 67 20 62 6f 78 | your di|alog box|
|00005600| 2e 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 bd |.....d..|ONLN.d..|
|00005610| 00 a0 00 7e 00 ab 01 b4 | 00 2a 0a 3e 2f 2f 20 54 |...~....|.*.>// T|
|00005620| 68 65 20 6f 6e 65 20 74 | 68 69 6e 67 20 74 6f 20 |he one t|hing to |
|00005630| 72 65 6d 65 6d 62 65 72 | 20 69 73 20 74 68 61 74 |remember| is that|
|00005640| 20 69 66 20 61 64 64 69 | 6e 67 20 61 20 64 69 61 | if addi|ng a dia|
|00005650| 6c 6f 67 20 62 6f 78 20 | 69 6e 00 a1 00 64 00 10 |log box |in...d..|
|00005660| 4f 4e 4c 4e 00 64 00 fe | 00 aa 00 7e 00 b5 01 af |ONLN.d..|...~....|
|00005670| 00 2a 0a 3d 2f 2f 20 79 | 6f 75 72 20 73 6c 65 65 |.*.=// y|our slee|
|00005680| 70 51 72 6f 75 74 69 6e | 65 2c 20 79 6f 75 20 73 |pQroutin|e, you s|
|00005690| 68 6f 75 6c 64 20 61 6c | 77 61 79 73 20 6d 61 6b |hould al|ways mak|
|000056a0| 65 20 69 74 20 61 20 64 | 69 61 6c 6f 67 20 62 6f |e it a d|ialog bo|
|000056b0| 78 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 3e |x....d..|ONLN.d.>|
|000056c0| 00 b4 00 7e 00 bf 01 a5 | 00 2a 0a 3b 2f 2f 20 74 |...~....|.*.;// t|
|000056d0| 68 61 74 20 74 69 6d 65 | 73 20 6f 75 74 2e 20 49 |hat time|s out. I|
|000056e0| 66 20 74 68 65 20 75 73 | 65 72 20 69 73 20 6e 6f |f the us|er is no|
|000056f0| 74 20 70 72 65 73 65 6e | 74 20 74 6f 20 61 6e 73 |t presen|t to ans|
|00005700| 77 65 72 20 74 68 65 00 | 00 a1 00 64 00 10 4f 4e |wer the.|...d..ON|
|00005710| 4c 4e 00 64 01 7c 00 be | 00 7e 00 c9 01 aa 00 2a |LN.d.|..|.~.....*|
|00005720| 0a 3c 2f 2f 20 61 6c 65 | 72 74 20 62 6f 78 20 6f |.<// ale|rt box o|
|00005730| 72 20 64 69 61 6c 6f 67 | 20 62 6f 78 2c 20 63 6f |r dialog| box, co|
|00005740| 6e 74 72 6f 6c 20 69 73 | 20 6e 65 76 65 72 20 72 |ntrol is| never r|
|00005750| 65 74 75 72 6e 65 64 20 | 74 6f 20 74 68 65 00 a1 |eturned |to the..|
|00005760| 00 64 00 10 4f 4e 4c 4e | 00 64 01 bb 00 c8 00 7e |.d..ONLN|.d.....~|
|00005770| 00 d3 01 c8 00 2a 0a 42 | 2f 2f 20 50 6f 77 65 72 |.....*.B|// Power|
|00005780| 20 4d 61 6e 61 67 65 72 | 2c 20 61 6e 64 20 74 68 | Manager|, and th|
|00005790| 65 20 70 6f 72 74 61 62 | 6c 65 20 64 6f 65 73 20 |e portab|le does |
|000057a0| 6e 6f 74 20 67 6f 20 74 | 6f 20 73 6c 65 65 70 2e |not go t|o sleep.|
|000057b0| 20 54 68 69 73 20 69 73 | 20 61 00 a1 00 64 00 10 | This is| a...d..|
|000057c0| 4f 4e 4c 4e 00 64 02 00 | 00 d2 00 7e 00 dd 01 cd |ONLN.d..|...~....|
|000057d0| 00 2a 0a 43 2f 2f 20 67 | 72 65 61 74 20 77 61 79 |.*.C// g|reat way|
|000057e0| 20 74 6f 20 70 65 72 6d | 61 6e 65 6e 74 6c 79 20 | to perm|anently |
|000057f0| 62 75 72 6e 20 69 6e 20 | 75 6e 77 61 6e 74 65 64 |burn in |unwanted|
|00005800| 20 69 6d 61 67 65 73 20 | 69 6e 20 79 6f 75 72 20 | images |in your |
|00005810| 73 63 72 65 65 6e 21 00 | 00 a1 00 64 00 10 4f 4e |screen!.|...d..ON|
|00005820| 4c 4e 00 64 02 46 00 dc | 00 7e 00 e7 00 97 00 2a |LN.d.F..|.~.....*|
|00005830| 0a 05 20 20 20 20 3a 00 | 00 a1 00 64 00 10 4f 4e |.. :.|...d..ON|
|00005840| 4c 4e 00 64 02 4d 00 e6 | 00 7e 00 f1 00 97 00 2a |LN.d.M..|.~.....*|
|00005850| 0a 05 20 20 20 20 3a 00 | 00 a1 00 64 00 10 4f 4e |.. :.|...d..ON|
|00005860| 4c 4e 00 64 02 54 00 f0 | 00 7e 00 fb 00 ce 00 2a |LN.d.T..|.~.....*|
|00005870| 0a 10 2f 2f 20 53 65 74 | 41 35 28 6f 6c 64 41 35 |..// Set|A5(oldA5|
|00005880| 29 3b 00 03 00 14 00 0d | 00 0c 00 a1 00 64 00 10 |);......|.....d..|
|00005890| 4f 4e 4c 4e 00 64 02 65 | 01 06 00 5a 01 12 01 8c |ONLN.d.e|...Z....|
|000058a0| 00 28 01 0f 00 5a 40 49 | 20 75 73 65 64 20 74 68 |.(...Z@I| used th|
|000058b0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 6f 64 65 |e follow|ing code|
|000058c0| 20 74 6f 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 | to make| sure th|
|000058d0| 61 74 20 6d 79 20 64 69 | 61 6c 6f 67 20 62 6f 78 |at my di|alog box|
|000058e0| 20 74 69 6d 65 64 20 00 | 00 06 00 01 00 00 00 a1 | timed .|........|
|000058f0| 00 64 00 10 4f 4e 4c 4e | 00 64 02 a5 01 06 01 8c |.d..ONLN|.d......|
|00005900| 01 12 02 1c 00 28 01 0f | 01 8c 1a 6f 75 74 2e 20 |.....(..|...out. |
|00005910| 59 6f 75 20 6d 61 79 20 | 68 61 76 65 20 79 6f 75 |You may |have you|
|00005920| 72 20 6f 77 6e 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |r own...|.d..ONLN|
|00005930| 00 64 02 c0 01 12 00 5a | 01 1e 00 f6 00 28 01 1b |.d.....Z|.....(..|
|00005940| 00 5a 21 73 70 65 63 69 | 61 6c 20 74 65 63 68 6e |.Z!speci|al techn|
|00005950| 69 71 75 65 20 66 6f 72 | 20 74 69 6d 69 6e 67 20 |ique for| timing |
|00005960| 6f 75 74 20 00 06 00 02 | 00 00 00 a1 00 64 00 10 |out ....|.....d..|
|00005970| 4f 4e 4c 4e 00 64 02 e1 | 01 12 00 f6 01 1e 02 1c |ONLN.d..|........|
|00005980| 00 29 9c 3a 79 6f 75 72 | 20 64 69 61 6c 6f 67 20 |.).:your| dialog |
|00005990| 62 6f 78 2c 20 62 75 74 | 20 6e 65 76 65 72 74 68 |box, but| neverth|
|000059a0| 65 6c 65 73 73 20 79 6f | 75 20 6d 75 73 74 20 65 |eless yo|u must e|
|000059b0| 6e 73 75 72 65 20 74 68 | 61 74 20 74 68 65 00 06 |nsure th|at the..|
|000059c0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000059d0| 03 1c 01 1e 00 5a 01 2a | 01 d2 00 28 01 27 00 5a |.....Z.*|...(.'.Z|
|000059e0| 52 64 69 61 6c 6f 67 20 | 62 6f 78 20 77 69 6c 6c |Rdialog |box will|
|000059f0| 20 74 69 6d 65 20 6f 75 | 74 20 69 6e 20 63 61 73 | time ou|t in cas|
|00005a00| 65 20 74 68 65 20 75 73 | 65 72 20 69 73 20 6e 6f |e the us|er is no|
|00005a10| 74 20 70 72 65 73 65 6e | 74 20 74 6f 20 61 6e 73 |t presen|t to ans|
|00005a20| 77 65 72 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 |wer the |dialog b|
|00005a30| 6f 78 2e 00 00 03 00 16 | 00 0d 00 09 00 a1 00 64 |ox......|.......d|
|00005a40| 00 10 4f 4e 4c 4e 00 64 | 03 70 01 36 00 5a 01 41 |..ONLN.d|.p.6.Z.A|
|00005a50| 01 4f 00 2a 17 31 76 6f | 69 64 20 54 69 6d 65 6f |.O.*.1vo|id Timeo|
|00005a60| 75 74 44 69 61 6c 6f 67 | 28 73 68 6f 72 74 20 64 |utDialog|(short d|
|00005a70| 69 61 6c 6f 67 49 44 2c | 20 6c 6f 6e 67 20 64 75 |ialogID,| long du|
|00005a80| 72 61 74 69 6f 6e 29 00 | 00 a1 00 64 00 10 4f 4e |ration).|...d..ON|
|00005a90| 4c 4e 00 64 03 a2 01 40 | 00 5a 01 4b 00 5f 00 2a |LN.d...@|.Z.K._.*|
|00005aa0| 0a 01 7b 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |..{....d|..ONLN.d|
|00005ab0| 03 a4 01 4a 00 5a 01 55 | 00 c8 00 2a 0a 16 20 20 |...J.Z.U|...*.. |
|00005ac0| 20 20 73 68 6f 72 74 20 | 69 74 65 6d 48 69 74 20 | short |itemHit |
|00005ad0| 3d 20 30 3b 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |= 0;...d|..ONLN.d|
|00005ae0| 03 bb 01 54 00 5a 01 5f | 00 d2 00 2a 0a 18 20 20 |...T.Z._|...*.. |
|00005af0| 20 20 6c 6f 6e 67 20 73 | 74 61 72 74 54 69 63 6b | long s|tartTick|
|00005b00| 73 20 3d 20 30 3b 00 a1 | 00 64 00 10 4f 4e 4c 4e |s = 0;..|.d..ONLN|
|00005b10| 00 64 03 d4 01 5e 00 5a | 01 69 00 e1 00 2a 0a 1b |.d...^.Z|.i...*..|
|00005b20| 20 20 20 20 44 69 61 6c | 6f 67 50 74 72 20 64 69 | Dial|ogPtr di|
|00005b30| 61 6c 6f 67 20 3d 20 6e | 69 6c 3b 00 00 a1 00 64 |alog = n|il;....d|
|00005b40| 00 10 4f 4e 4c 4e 00 64 | 03 f0 01 72 00 5a 01 7d |..ONLN.d|...r.Z.}|
|00005b50| 01 77 00 2a 14 39 20 20 | 20 20 64 69 61 6c 6f 67 |.w.*.9 | dialog|
|00005b60| 20 3d 20 47 65 74 4e 65 | 77 44 69 61 6c 6f 67 28 | = GetNe|wDialog(|
|00005b70| 64 69 61 6c 6f 67 49 44 | 2c 20 6e 69 6c 2c 20 28 |dialogID|, nil, (|
|00005b80| 57 69 6e 64 6f 77 50 74 | 72 29 20 2d 31 29 3b 00 |WindowPt|r) -1);.|
|00005b90| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 04 2a 01 7c |...d..ON|LN.d.*.||
|00005ba0| 00 5a 01 87 00 cd 00 2a | 0a 17 20 20 20 20 53 68 |.Z.....*|.. Sh|
|00005bb0| 6f 77 57 69 6e 64 6f 77 | 28 64 69 61 6c 6f 67 29 |owWindow|(dialog)|
|00005bc0| 3b 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 42 |;....d..|ONLN.d.B|
|00005bd0| 01 86 00 5a 01 91 00 eb | 00 2a 0a 1d 20 20 20 20 |...Z....|.*.. |
|00005be0| 73 74 61 72 74 54 69 63 | 6b 73 20 3d 20 54 69 63 |startTic|ks = Tic|
|00005bf0| 6b 43 6f 75 6e 74 28 29 | 3b 00 00 a1 00 64 00 10 |kCount()|;....d..|
|00005c00| 4f 4e 4c 4e 00 64 04 60 | 01 90 00 5a 01 9b 01 90 |ONLN.d.`|...Z....|
|00005c10| 00 2a 0a 3e 20 20 20 20 | 77 68 69 6c 65 28 28 28 |.*.> |while(((|
|00005c20| 54 69 63 6b 43 6f 75 6e | 74 20 2d 20 73 74 61 72 |TickCoun|t - star|
|00005c30| 74 54 69 63 6b 73 29 20 | 3c 20 64 75 72 61 74 69 |tTicks) |< durati|
|00005c40| 6f 6e 29 20 26 26 20 28 | 69 74 65 6d 48 69 74 20 |on) && (|itemHit |
|00005c50| 21 3d 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 9f |!=...d..|ONLN.d..|
|00005c60| 01 9a 00 5a 01 a5 00 c3 | 00 2a 0a 15 20 20 20 20 |...Z....|.*.. |
|00005c70| 6b 4f 4b 42 75 74 74 6f | 6e 49 74 65 6d 49 44 29 |kOKButto|nItemID)|
|00005c80| 29 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 b5 |)....d..|ONLN.d..|
|00005c90| 01 a4 00 5a 01 af 00 73 | 00 2a 0a 05 20 20 20 20 |...Z...s|.*.. |
|00005ca0| 7b 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 04 bb |{....d..|ONLN.d..|
|00005cb0| 01 ae 00 5a 01 b9 00 f5 | 00 2a 0a 1f 20 20 20 20 |...Z....|.*.. |
|00005cc0| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 28 6e 69 6c 2c |ModalDia|log(nil,|
|00005cd0| 20 26 69 74 65 6d 48 69 | 74 29 3b 00 00 a1 00 64 | &itemHi|t);....d|
|00005ce0| 00 10 4f 4e 4c 4e 00 64 | 04 db 01 b8 00 5a 01 c3 |..ONLN.d|.....Z..|
|00005cf0| 00 73 00 2a 0a 05 20 20 | 20 20 7d 00 00 a1 00 64 |.s.*.. | }....d|
|00005d00| 00 10 4f 4e 4c 4e 00 64 | 04 e1 01 c2 00 5a 01 cd |..ONLN.d|.....Z..|
|00005d10| 00 dc 00 2a 0a 1a 20 20 | 20 20 44 69 73 70 6f 73 |...*.. | Dispos|
|00005d20| 65 44 69 61 6c 6f 67 28 | 64 69 61 6c 6f 67 29 3b |eDialog(|dialog);|
|00005d30| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 04 fc 01 cc |...d..ON|LN.d....|
|00005d40| 00 5a 01 d7 00 5f 00 2a | 0a 01 7d 00 00 03 00 14 |.Z..._.*|..}.....|
|00005d50| 00 04 01 00 00 0d 00 0e | 00 06 00 04 00 00 00 a1 |........|........|
|00005d60| 00 64 00 10 4f 4e 4c 4e | 00 64 04 fe 01 ee 00 5a |.d..ONLN|.d.....Z|
|00005d70| 01 fd 01 73 00 2a 26 24 | 54 68 65 20 53 6c 65 65 |...s.*&$|The Slee|
|00005d80| 70 20 51 75 65 75 65 20 | 43 61 6c 6c 73 20 4d 79 |p Queue |Calls My|
|00005d90| 20 53 75 62 72 6f 75 74 | 69 6e 65 20 00 06 00 05 | Subrout|ine ....|
|00005da0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 22 |.....d..|ONLN.d."|
|00005db0| 01 ee 01 73 01 fd 02 1c | 00 28 01 fa 01 73 15 62 |...s....|.(...s.b|
|00005dc0| 75 74 20 49 74 20 43 61 | 6e 6e 6f 74 20 46 69 6e |ut It Ca|nnot Fin|
|00005dd0| 64 20 4d 79 00 06 00 00 | 00 00 00 a1 00 64 00 10 |d My....|.....d..|
|00005de0| 4f 4e 4c 4e 00 64 05 38 | 01 fd 00 5a 02 0c 00 aa |ONLN.d.8|...Z....|
|00005df0| 00 28 02 09 00 5a 0b 44 | 69 61 6c 6f 67 20 42 6f |.(...Z.D|ialog Bo|
|00005e00| 78 2e 00 04 00 00 00 0d | 00 0c 00 a1 00 64 00 10 |x.......|.....d..|
|00005e10| 4f 4e 4c 4e 00 64 05 46 | 02 18 00 5a 02 24 00 67 |ONLN.d.F|...Z.$.g|
|00005e20| 00 2a 18 03 49 6e 20 00 | 00 06 00 01 00 00 00 a1 |.*..In .|........|
|00005e30| 00 64 00 10 4f 4e 4c 4e | 00 64 05 49 02 18 00 67 |.d..ONLN|.d.I...g|
|00005e40| 02 24 02 1c 00 29 0d 5a | 74 68 65 20 73 61 6d 65 |.$...).Z|the same|
|00005e50| 20 77 61 79 20 74 68 61 | 74 20 74 68 65 20 46 69 | way tha|t the Fi|
|00005e60| 6e 64 65 72 d5 73 20 77 | 6f 72 6c 64 20 69 73 20 |nder.s w|orld is |
|00005e70| 75 6e 61 62 6c 65 20 74 | 6f 20 66 69 6e 64 20 79 |unable t|o find y|
|00005e80| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |our appl|ication.|
|00005e90| 73 20 67 6c 6f 62 61 6c | 73 20 28 62 65 63 61 75 |s global|s (becau|
|00005ea0| 73 65 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 a4 |se...d..|ONLN.d..|
|00005eb0| 02 24 00 5a 02 30 01 33 | 00 28 02 2d 00 5a 2d 74 |.$.Z.0.3|.(.-.Z-t|
|00005ec0| 68 65 79 20 72 65 73 69 | 64 65 20 69 6e 20 79 6f |hey resi|de in yo|
|00005ed0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e d5 73 |ur appli|cation.s|
|00005ee0| 20 41 35 20 77 6f 72 6c | 64 29 2c 20 00 06 00 02 | A5 worl|d), ....|
|00005ef0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 05 d1 |.....d..|ONLN.d..|
|00005f00| 02 24 01 33 02 30 02 1c | 00 29 d9 2f 74 68 65 20 |.$.3.0..|.)./the |
|00005f10| 46 69 6e 64 65 72 20 69 | 73 20 61 6c 73 6f 20 75 |Finder i|s also u|
|00005f20| 6e 61 62 6c 65 20 74 6f | 20 61 63 63 65 73 73 20 |nable to| access |
|00005f30| 79 6f 75 72 20 64 69 61 | 6c 6f 67 00 00 06 00 01 |your dia|log.....|
|00005f40| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 06 01 |.....d..|ONLN.d..|
|00005f50| 02 30 00 5a 02 3c 01 3b | 00 28 02 39 00 5a 2c 62 |.0.Z.<.;|.(.9.Z,b|
|00005f60| 6f 78 d5 73 20 72 65 73 | 6f 75 72 63 65 2e 20 57 |ox.s res|ource. W|
|00005f70| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 63 68 6f |hen the |user cho|
|00005f80| 6f 73 65 73 20 53 6c 65 | 65 70 20 00 00 06 00 02 |oses Sle|ep .....|
|00005f90| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 06 2d |.....d..|ONLN.d.-|
|00005fa0| 02 30 01 3b 02 3c 02 1c | 00 29 e1 2d 66 72 6f 6d |.0.;.<..|.).-from|
|00005fb0| 20 74 68 65 20 6d 65 6e | 75 2c 20 74 68 65 20 46 | the men|u, the F|
|00005fc0| 69 6e 64 65 72 20 74 72 | 69 65 73 20 74 6f 20 61 |inder tr|ies to a|
|00005fd0| 63 63 65 73 73 20 74 68 | 65 00 00 06 00 00 00 00 |ccess th|e.......|
|00005fe0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 5b 02 3c |...d..ON|LN.d.[.<|
|00005ff0| 00 5a 02 48 00 b9 00 28 | 02 45 00 5a 15 61 70 70 |.Z.H...(|.E.Z.app|
|00006000| 6c 69 63 61 74 69 6f 6e | d5 73 20 64 69 61 6c 6f |lication|.s dialo|
|00006010| 67 20 00 06 00 01 00 00 | 00 a1 00 64 00 10 4f 4e |g ......|...d..ON|
|00006020| 4c 4e 00 64 06 70 02 3c | 00 b9 02 48 02 1c 00 29 |LN.d.p.<|...H...)|
|00006030| 5f 49 72 65 73 6f 75 72 | 63 65 2e 20 54 68 65 20 |_Iresour|ce. The |
|00006040| 46 69 6e 64 65 72 20 6b | 6e 6f 77 73 20 6e 6f 74 |Finder k|nows not|
|00006050| 68 69 6e 67 20 61 62 6f | 75 74 20 74 68 65 20 61 |hing abo|ut the a|
|00006060| 70 70 6c 69 63 61 74 69 | 6f 6e d5 73 20 72 65 73 |pplicati|on.s res|
|00006070| 6f 75 72 63 65 20 6c 69 | 73 74 2c 00 00 06 00 00 |ource li|st,.....|
|00006080| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 06 ba |.....d..|ONLN.d..|
|00006090| 02 48 00 5a 02 54 01 f6 | 00 28 02 51 00 5a 5e 6e |.H.Z.T..|.(.Q.Z^n|
|000060a0| 6f 72 20 64 6f 65 73 20 | 69 74 20 68 61 76 65 20 |or does |it have |
|000060b0| 61 63 63 65 73 73 20 74 | 6f 20 69 74 2e 20 49 74 |access t|o it. It|
|000060c0| 20 63 61 6e 20 6f 6e 6c | 79 20 6c 6f 6f 6b 20 74 | can onl|y look t|
|000060d0| 6f 20 69 74 73 20 6f 77 | 6e 20 72 65 73 6f 75 72 |o its ow|n resour|
|000060e0| 63 65 20 6c 69 73 74 20 | 74 6f 20 73 65 65 20 69 |ce list |to see i|
|000060f0| 66 20 74 68 65 20 64 69 | 61 6c 6f 67 20 00 00 06 |f the di|alog ...|
|00006100| 00 01 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00006110| 07 18 02 48 01 f6 02 54 | 02 1c 00 28 02 51 01 f6 |...H...T|...(.Q..|
|00006120| 07 62 6f 78 20 63 61 6e | 00 06 00 00 00 00 00 a1 |.box can|........|
|00006130| 00 64 00 10 4f 4e 4c 4e | 00 64 07 20 02 54 00 5a |.d..ONLN|.d. .T.Z|
|00006140| 02 60 01 89 00 28 02 5d | 00 5a 41 62 65 20 66 6f |.`...(.]|.ZAbe fo|
|00006150| 75 6e 64 2e 20 54 6f 20 | 72 65 73 6f 6c 76 65 20 |und. To |resolve |
|00006160| 74 68 69 73 20 73 69 74 | 75 61 74 69 6f 6e 20 77 |this sit|uation w|
|00006170| 65 20 77 69 6c 6c 20 6e | 65 65 64 20 74 6f 20 75 |e will n|eed to u|
|00006180| 73 65 20 74 68 65 20 73 | 61 6d 65 20 00 06 00 01 |se the s|ame ....|
|00006190| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 61 |.....d..|ONLN.d.a|
|000061a0| 02 54 01 89 02 60 02 1c | 00 28 02 5d 01 89 1c 74 |.T...`..|.(.]...t|
|000061b0| 72 69 63 6b 20 77 65 20 | 75 73 65 64 20 61 62 6f |rick we |used abo|
|000061c0| 76 65 2e 20 57 65 20 6e | 65 65 64 00 00 06 00 00 |ve. We n|eed.....|
|000061d0| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 7e |.....d..|ONLN.d.~|
|000061e0| 02 60 00 5a 02 6c 01 f3 | 00 28 02 69 00 5a 5b 74 |.`.Z.l..|.(.i.Z[t|
|000061f0| 6f 20 73 61 76 65 20 6f | 75 72 20 64 69 61 6c 6f |o save o|ur dialo|
|00006200| 67 20 62 6f 78 d5 73 20 | 72 65 73 6f 75 72 63 65 |g box.s |resource|
|00006210| 20 73 6f 20 74 68 61 74 | 20 69 74 20 77 69 6c 6c | so that| it will|
|00006220| 20 62 65 20 72 65 61 64 | 69 6c 79 20 61 76 61 69 | be read|ily avai|
|00006230| 6c 61 62 6c 65 20 77 68 | 65 6e 20 77 65 20 63 61 |lable wh|en we ca|
|00006240| 6c 6c 20 66 6f 72 20 69 | 74 2e 00 06 00 02 00 00 |ll for i|t.......|
|00006250| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 07 da 02 78 |...d..ON|LN.d...x|
|00006260| 00 5a 02 84 01 e9 00 2a | 18 4b 59 6f 75 20 6d 69 |.Z.....*|.KYou mi|
|00006270| 67 68 74 20 62 65 20 74 | 65 6d 70 74 65 64 20 74 |ght be t|empted t|
|00006280| 6f 20 63 72 65 61 74 65 | 20 61 20 44 4c 4f 47 2f |o create| a DLOG/|
|00006290| 44 49 54 4c 20 70 61 69 | 72 2c 20 74 68 65 6e 20 |DITL pai|r, then |
|000062a0| 63 61 6c 6c 20 47 65 74 | 4e 65 77 44 69 61 6c 6f |call Get|NewDialo|
|000062b0| 67 20 61 74 20 00 00 06 | 00 03 00 00 00 a1 00 64 |g at ...|.......d|
|000062c0| 00 10 4f 4e 4c 4e 00 64 | 08 25 02 78 01 e9 02 84 |..ONLN.d|.%.x....|
|000062d0| 02 1c 00 28 02 81 01 e9 | 0b 61 70 70 6c 69 63 61 |...(....|.applica|
|000062e0| 74 69 6f 6e 00 06 00 00 | 00 00 00 a1 00 64 00 10 |tion....|.....d..|
|000062f0| 4f 4e 4c 4e 00 64 08 31 | 02 84 00 5a 02 90 01 c1 |ONLN.d.1|...Z....|
|00006300| 00 28 02 8d 00 5a 4e 73 | 74 61 72 74 75 70 20 74 |.(...ZNs|tartup t|
|00006310| 69 6d 65 20 61 6e 64 20 | 73 61 76 65 20 79 6f 75 |ime and |save you|
|00006320| 72 20 64 69 61 6c 6f 67 | 50 74 72 20 61 77 61 79 |r dialog|Ptr away|
|00006330| 20 66 6f 72 20 6c 61 74 | 65 72 20 75 73 65 20 62 | for lat|er use b|
|00006340| 79 20 74 68 65 20 73 6c | 65 65 70 20 72 6f 75 74 |y the sl|eep rout|
|00006350| 69 6e 65 2e 20 00 00 06 | 00 01 00 00 00 a1 00 64 |ine. ...|.......d|
|00006360| 00 10 4f 4e 4c 4e 00 64 | 08 7f 02 84 01 c1 02 90 |..ONLN.d|........|
|00006370| 02 1c 00 28 02 8d 01 c1 | 12 48 6f 77 65 76 65 72 |...(....|.However|
|00006380| 2c 20 74 68 69 73 20 77 | 69 6c 6c 00 00 06 00 00 |, this w|ill.....|
|00006390| 00 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 08 92 |.....d..|ONLN.d..|
|000063a0| 02 90 00 5a 02 9c 00 c1 | 00 28 02 99 00 5a 15 6e |...Z....|.(...Z.n|
|000063b0| 6f 74 20 77 6f 72 6b 20 | 62 65 63 61 75 73 65 20 |ot work |because |
|000063c0| 74 68 65 20 00 06 00 01 | 00 00 00 a1 00 64 00 10 |the ....|.....d..|
|000063d0| 4f 4e 4c 4e 00 64 08 a7 | 02 90 00 c1 02 9c 02 1c |ONLN.d..|........|
|000063e0| 00 29 67 46 64 69 61 6c | 6f 67 20 62 6f 78 20 77 |.)gFdial|og box w|
|000063f0| 69 6c 6c 20 62 65 20 63 | 72 65 61 74 65 64 20 69 |ill be c|reated i|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.